Bug correction when canceling open file dialog

New About page
Main menu pages now have titles
This commit is contained in:
2017-10-16 10:57:39 +02:00
committed by BONNEVILLE Geoffroy
parent 86064af3a2
commit 5497e6fc00
9 changed files with 89 additions and 24 deletions

View File

@@ -41,7 +41,9 @@ namespace ModernKeePass.Pages
picker.FileTypeFilter.Add(".kdbx");
// Application now has read/write access to the picked file
Model.OpenFile(await picker.PickSingleFileAsync());
var file = await picker.PickSingleFileAsync();
if (file == null) return;
Model.OpenFile(file);
}
private void PasswordUserControl_PasswordChecked(object sender, PasswordEventArgs e)