mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 15:40:18 -04:00
WIP History
Restore from history works
This commit is contained in:
@@ -259,6 +259,13 @@ namespace ModernKeePass.Infrastructure.KeePass
|
||||
pwEntry.CreateBackup(null);
|
||||
}
|
||||
|
||||
public void RestoreFromHistory(string entryId, int historyIndex)
|
||||
{
|
||||
var pwEntry = _pwDatabase.RootGroup.FindEntry(BuildIdFromString(entryId), true);
|
||||
pwEntry.RestoreFromBackup((uint)historyIndex, _pwDatabase);
|
||||
pwEntry.Touch(true);
|
||||
}
|
||||
|
||||
public void UpdateGroup(string groupId)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
|
Reference in New Issue
Block a user