mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 15:40:18 -04:00
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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user