Changed tooltip styles

Removed useless isdirty field in entry
When an app can't be saved on suspend, don't reopen it to avoid possible de-sync
This commit is contained in:
Geoffroy BONNEVILLE
2020-05-13 18:59:26 +02:00
parent 0adb44bc81
commit 2e01fa2212
6 changed files with 63 additions and 24 deletions

View File

@@ -17,6 +17,8 @@ namespace ModernKeePass.Application.Database.Commands.CloseDatabase
public void Handle(CloseDatabaseCommand message)
{
if (!_database.IsOpen) throw new DatabaseClosedException();
// Prevent reopening the database due to possible de-synchronization between app and data
if (_database.IsDirty) _database.FileAccessToken = null;
_database.CloseDatabase();
}
}