mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 15:40:18 -04:00
Password generation button with display toggle and indicator is now a user control
SetCredentials user controls now uses PasswordGenerationBox user control Some layout improvements in EntryDetailsPage WIP Clipboard suspend issues
This commit is contained in:
@@ -42,6 +42,7 @@ namespace ModernKeePass.Actions
|
||||
var dataPackage = new DataPackage { RequestedOperation = DataPackageOperation.Copy };
|
||||
dataPackage.SetText(IsProtected ? cryptography.UnProtect(Text).GetAwaiter().GetResult() : Text);
|
||||
Clipboard.SetContent(dataPackage);
|
||||
Clipboard.Flush();
|
||||
_dispatcher.Start();
|
||||
|
||||
return null;
|
||||
@@ -49,8 +50,14 @@ namespace ModernKeePass.Actions
|
||||
|
||||
private void Dispatcher_Tick(object sender, object e)
|
||||
{
|
||||
Clipboard.SetContent(null);
|
||||
_dispatcher.Stop();
|
||||
try
|
||||
{
|
||||
Clipboard.SetContent(null);
|
||||
}
|
||||
finally
|
||||
{
|
||||
_dispatcher.Stop();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user