Navigate to URL correctly shows the error, should it happen

Entry title linked to history version
Title text boxes selection now uses the main color
This commit is contained in:
BONNEVILLE Geoffroy
2018-06-25 17:31:17 +02:00
parent c6e27c35c8
commit 7ffcf1c82b
5 changed files with 12 additions and 12 deletions

View File

@@ -63,17 +63,16 @@ namespace ModernKeePass.Views
private void HamburgerMenuUserControl_OnSelectionChanged(object sender, SelectionChangedEventArgs e)
{
var listView = sender as ListView;
EntryVm entry;
switch (listView?.SelectedIndex)
{
case -1:
return;
default:
entry = listView?.SelectedItem as EntryVm;
var entry = listView?.SelectedItem as EntryVm;
StackPanel.DataContext = entry;
TitleTextBox.DataContext = entry;
break;
}
StackPanel.DataContext = entry;
}
}
}