diff --git a/ModernKeePass/Strings/en-US/Resources.resw b/ModernKeePass/Strings/en-US/Resources.resw index 8c4517a..46da78e 100644 --- a/ModernKeePass/Strings/en-US/Resources.resw +++ b/ModernKeePass/Strings/en-US/Resources.resw @@ -450,4 +450,10 @@ Sort + + Sort entries + + + Sort groups + \ No newline at end of file diff --git a/ModernKeePass/Strings/fr-FR/Resources.resw b/ModernKeePass/Strings/fr-FR/Resources.resw index 56b6fad..54879be 100644 --- a/ModernKeePass/Strings/fr-FR/Resources.resw +++ b/ModernKeePass/Strings/fr-FR/Resources.resw @@ -450,4 +450,10 @@ Trier + + Trier les entrées + + + Trier les groupes + \ No newline at end of file diff --git a/ModernKeePass/Views/UserControls/TopMenuUserControl.xaml b/ModernKeePass/Views/UserControls/TopMenuUserControl.xaml index 495d026..03c1532 100644 --- a/ModernKeePass/Views/UserControls/TopMenuUserControl.xaml +++ b/ModernKeePass/Views/UserControls/TopMenuUserControl.xaml @@ -21,13 +21,6 @@ - - - - - - - + + + + + + + diff --git a/ModernKeePass/Views/UserControls/TopMenuUserControl.xaml.cs b/ModernKeePass/Views/UserControls/TopMenuUserControl.xaml.cs index 873ecca..d7d5c67 100644 --- a/ModernKeePass/Views/UserControls/TopMenuUserControl.xaml.cs +++ b/ModernKeePass/Views/UserControls/TopMenuUserControl.xaml.cs @@ -209,7 +209,7 @@ namespace ModernKeePass.Views.UserControls RestoreButtonClick?.Invoke(sender, e); } - private void FlyoutBase_OnOpening(object sender, object e) + private void OverflowFlyout_OnOpening(object sender, object e) { DeleteFlyout.IsEnabled = IsDeleteButtonEnabled; DeleteFlyout.Visibility = DeleteButtonVisibility; @@ -221,6 +221,14 @@ namespace ModernKeePass.Views.UserControls SortEntriesFlyout.Visibility = SortButtonVisibility; SortGroupsFlyout.Visibility = SortButtonVisibility; + SortEntriesFlyout.Command = SortEntriesCommand; + SortGroupsFlyout.Command = SortGroupsCommand; + } + + private void SortFlyout_OnOpening(object sender, object e) + { + SortEntriesButtonFlyout.Command = SortEntriesCommand; + SortGroupsButtonFlyout.Command = SortGroupsCommand; } } }