Database file is now handled by each page, instead of a central place

Opening a database while another one is open triggers a warning message
This commit is contained in:
BONNEVILLE Geoffroy
2018-06-20 11:52:17 +02:00
parent 408b4eed90
commit 188233cc81
8 changed files with 17 additions and 16 deletions

View File

@@ -199,7 +199,7 @@ namespace ModernKeePass
base.OnFileActivated(args);
var rootFrame = new Frame();
var file = args.Files[0] as StorageFile;
rootFrame.Navigate(typeof(OpenDatabasePage), file);
rootFrame.Navigate(typeof(MainPage), file);
Window.Current.Content = rootFrame;
Window.Current.Activate();
}