mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-04 08:00:16 -04:00
Main page now allows password input
Group nesting works
This commit is contained in:
@@ -31,15 +31,19 @@ namespace ModernKeePass
|
||||
if (file != null)
|
||||
{
|
||||
// Application now has read/write access to the picked file
|
||||
textBlock.Text = "Opened database: " + file.Name;
|
||||
var database = new DatabaseVm();
|
||||
database.Open(file, "test");
|
||||
Frame.Navigate(typeof(GroupDetailPage), database.RootGroup);
|
||||
DataContext = new DatabaseVm(file);
|
||||
}
|
||||
else
|
||||
{
|
||||
textBlock.Text = "Operation cancelled.";
|
||||
}
|
||||
}
|
||||
|
||||
private void openBbutton_Click(object sender, Windows.UI.Xaml.RoutedEventArgs e)
|
||||
{
|
||||
var database = DataContext as DatabaseVm;
|
||||
database.Open();
|
||||
if (database.IsOpen)
|
||||
Frame.Navigate(typeof(GroupDetailPage), database.RootGroup);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user