diff --git a/ModernKeePass.Infrastructure/KeePass/KeePassDatabaseClient.cs b/ModernKeePass.Infrastructure/KeePass/KeePassDatabaseClient.cs index 9c26f15..e03e413 100644 --- a/ModernKeePass.Infrastructure/KeePass/KeePassDatabaseClient.cs +++ b/ModernKeePass.Infrastructure/KeePass/KeePassDatabaseClient.cs @@ -331,6 +331,7 @@ namespace ModernKeePass.Infrastructure.KeePass public void UpdateCredentials(Credentials credentials) { _pwDatabase.MasterKey = CreateCompositeKey(credentials); + _credentials = credentials; } public IEnumerable Search(string groupId, string text) diff --git a/ModernKeePass/App.xaml.cs b/ModernKeePass/App.xaml.cs index 45ec9cb..7603e99 100644 --- a/ModernKeePass/App.xaml.cs +++ b/ModernKeePass/App.xaml.cs @@ -85,10 +85,10 @@ namespace ModernKeePass ? exception.InnerException : exception; + _hockey.TrackException(realException); if (realException is SaveException) { unhandledExceptionEventArgs.Handled = true; - _hockey.TrackException(realException); await _dialog.ShowMessage(realException.Message, _resource.GetResourceValue("MessageDialogSaveErrorTitle"), _resource.GetResourceValue("MessageDialogSaveErrorButtonSaveAs"), @@ -116,10 +116,6 @@ namespace ModernKeePass } }); } - else - { - await _dialog.ShowError(realException, realException.Message, "OK", () => {}); - } } /// diff --git a/ModernKeePass/Strings/en-US/Resources.resw b/ModernKeePass/Strings/en-US/Resources.resw index 5dcf7ad..506cd34 100644 --- a/ModernKeePass/Strings/en-US/Resources.resw +++ b/ModernKeePass/Strings/en-US/Resources.resw @@ -504,4 +504,13 @@ Move + + Passwords must match + + + Key file can't be empty + + + Confirm password + \ No newline at end of file diff --git a/ModernKeePass/Strings/fr-FR/Resources.resw b/ModernKeePass/Strings/fr-FR/Resources.resw index b47a40e..f0bf00d 100644 --- a/ModernKeePass/Strings/fr-FR/Resources.resw +++ b/ModernKeePass/Strings/fr-FR/Resources.resw @@ -507,4 +507,13 @@ Déplacer + + Les mots de passe doivent être égaux + + + Vous devez sélectionner un fichier de clé + + + Confirmer le mot de passe + \ No newline at end of file diff --git a/ModernKeePass/Views/UserControls/OpenDatabaseUserControl.xaml b/ModernKeePass/Views/UserControls/OpenDatabaseUserControl.xaml index 5b36108..504174e 100644 --- a/ModernKeePass/Views/UserControls/OpenDatabaseUserControl.xaml +++ b/ModernKeePass/Views/UserControls/OpenDatabaseUserControl.xaml @@ -35,12 +35,14 @@ + +