diff --git a/ModernKeePass.Application/Database/Commands/UpdateCredentials/UpdateCredentialsCommand.cs b/ModernKeePass.Application/Database/Commands/UpdateCredentials/UpdateCredentialsCommand.cs index 7f0ef75..80c6499 100644 --- a/ModernKeePass.Application/Database/Commands/UpdateCredentials/UpdateCredentialsCommand.cs +++ b/ModernKeePass.Application/Database/Commands/UpdateCredentials/UpdateCredentialsCommand.cs @@ -27,7 +27,7 @@ namespace ModernKeePass.Application.Database.Commands.UpdateCredentials if (!_database.IsOpen) throw new DatabaseClosedException(); _database.UpdateCredentials(new Credentials { - KeyFileContents = await _file.OpenBinaryFile(message.KeyFilePath), + KeyFileContents = !string.IsNullOrEmpty(message.KeyFilePath) ? await _file.OpenBinaryFile(message.KeyFilePath) : null, Password = message.Password }); } diff --git a/ModernKeePass/Views/SettingsPageFrames/SettingsSecurityPage.xaml b/ModernKeePass/Views/SettingsPageFrames/SettingsSecurityPage.xaml index 17b3d18..32450cb 100644 --- a/ModernKeePass/Views/SettingsPageFrames/SettingsSecurityPage.xaml +++ b/ModernKeePass/Views/SettingsPageFrames/SettingsSecurityPage.xaml @@ -5,24 +5,19 @@ xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:userControls="using:ModernKeePass.Views.UserControls" - xmlns:interactivity="using:Microsoft.Xaml.Interactivity" - xmlns:core="using:Microsoft.Xaml.Interactions.Core" - xmlns:actions="using:ModernKeePass.Actions" + xmlns:listItems="using:ModernKeePass.ViewModels.ListItems" mc:Ignorable="d"> + + + - + - - - - - - - + diff --git a/ModernKeePass/Views/UserControls/CompositeKeyUserControl.xaml b/ModernKeePass/Views/UserControls/CompositeKeyUserControl.xaml deleted file mode 100644 index 866582a..0000000 --- a/ModernKeePass/Views/UserControls/CompositeKeyUserControl.xaml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -