Skip to content

Commit

Permalink
Flip item order in open with menu
Browse files Browse the repository at this point in the history
  • Loading branch information
srwi committed Nov 14, 2020
1 parent 3571fc1 commit fad66f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion EverythingToolbar/SearchResultsView.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,9 @@ private void OnOpenWithMenuLoaded(object sender, RoutedEventArgs e)
else
(mi.Items[0] as MenuItem).Visibility = Visibility.Visible;

foreach (Rule rule in rules)
for (int i = rules.Count - 1; i >= 0; i--)
{
Rule rule = rules[i];
MenuItem ruleMenuItem = new MenuItem() { Header = rule.Name, Tag = rule.Command };
ruleMenuItem.Click += OpenWithRule;
mi.Items.Insert(0, ruleMenuItem);
Expand Down

0 comments on commit fad66f1

Please sign in to comment.