mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 23:50:18 -04:00
Adds some VM tests
New tooltip in Textbox with button control New welcome page in Settings (shown when noting is selected) Settings are now grouped
This commit is contained in:
@@ -69,17 +69,17 @@ namespace ModernKeePass.Pages.BasePages
|
||||
{
|
||||
// When this is a new page, select the first item automatically unless logical page
|
||||
// navigation is being used (see the logical page navigation #region below.)
|
||||
if (!UsingLogicalPageNavigation() && ListViewSource.View != null)
|
||||
if (!UsingLogicalPageNavigation())
|
||||
{
|
||||
ListViewSource.View.MoveCurrentToFirst();
|
||||
ListViewSource.View?.MoveCurrentToFirst();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// Restore the previously saved state associated with this page
|
||||
if (e.PageState.ContainsKey("SelectedItem") && ListViewSource.View != null)
|
||||
if (e.PageState.ContainsKey("SelectedItem"))
|
||||
{
|
||||
ListViewSource.View.MoveCurrentTo(e.PageState["SelectedItem"]);
|
||||
ListViewSource.View?.MoveCurrentTo(e.PageState["SelectedItem"]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user