mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 15:40:18 -04:00
KeepassLib version 2.38
Added a new settings page to allow auto-save or not App now resumes correctly from suspend Settings service now allows getting default values Removed french special characters from metadata Code cleanup
This commit is contained in:
@@ -13,11 +13,14 @@ namespace ModernKeePassApp.Test.Mock
|
||||
{
|
||||
private bool _isOpen;
|
||||
private bool _isClosed;
|
||||
private CompositeKey _compositeKey;
|
||||
|
||||
public PwCompressionAlgorithm CompressionAlgorithm { get; set; }
|
||||
|
||||
public StorageFile DatabaseFile { get; set; }
|
||||
|
||||
public CompositeKey CompositeKey => _compositeKey;
|
||||
|
||||
public PwUuid DataCipher { get; set; }
|
||||
|
||||
public KdfParameters KeyDerivation { get; set; }
|
||||
@@ -43,7 +46,7 @@ namespace ModernKeePassApp.Test.Mock
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public Task Close()
|
||||
public Task Close(bool releaseFile = true)
|
||||
{
|
||||
return Task.Run(() =>
|
||||
{
|
||||
@@ -57,8 +60,9 @@ namespace ModernKeePassApp.Test.Mock
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public Task Open(CompositeKey key, bool createNew)
|
||||
public Task Open(CompositeKey key, bool createNew = false)
|
||||
{
|
||||
_compositeKey = key;
|
||||
return Task.Run(() =>
|
||||
{
|
||||
_isOpen = true;
|
||||
@@ -66,6 +70,11 @@ namespace ModernKeePassApp.Test.Mock
|
||||
});
|
||||
}
|
||||
|
||||
public async Task ReOpen()
|
||||
{
|
||||
await Open(_compositeKey);
|
||||
}
|
||||
|
||||
public void Save()
|
||||
{
|
||||
// Do Nothing
|
||||
|
Reference in New Issue
Block a user