Entry history delete and restore work

This commit is contained in:
Geoffroy BONNEVILLE
2020-04-16 14:08:50 +02:00
parent 98ac418f62
commit 9befdc321a
15 changed files with 196 additions and 96 deletions

View File

@@ -266,6 +266,12 @@ namespace ModernKeePass.Infrastructure.KeePass
pwEntry.Touch(true);
}
public void DeleteHistory(string entryId, int historyIndex)
{
var pwEntry = _pwDatabase.RootGroup.FindEntry(BuildIdFromString(entryId), true);
pwEntry.History.RemoveAt((uint)historyIndex);
}
public void UpdateGroup(string groupId)
{
throw new NotImplementedException();