Added dirty behavior

Removed restore action (-> Move action wip)
Added additional check on DB size before auto saving
Code cleanup
This commit is contained in:
Geoffroy BONNEVILLE
2020-04-14 13:44:07 +02:00
parent d972b6cb5a
commit a2eba91a3b
34 changed files with 236 additions and 190 deletions

View File

@@ -25,9 +25,7 @@ namespace ModernKeePass.Infrastructure.KeePass
private Credentials _credentials;
// Flag: Has Dispose already been called?
private bool _disposed;
public string ZeroId => PwUuid.Zero.ToHexString();
// Main information
public bool IsOpen => (_pwDatabase?.IsOpen).GetValueOrDefault();
public string Name => _pwDatabase?.Name;
@@ -35,6 +33,8 @@ namespace ModernKeePass.Infrastructure.KeePass
// TODO: find a correct place for this
public string FileAccessToken { get; set; }
public int Size { get; set; }
public bool IsDirty { get; set; }
// Settings
public bool IsRecycleBinEnabled