Restore old clicksort functionality

no longer reverses sort
Closes #1946
This commit is contained in:
Kurt 2018-05-15 15:56:48 -07:00
parent b798da9b03
commit 5f2f295541

View file

@ -383,8 +383,12 @@ namespace PKHeX.WinForms.Controls
if (ModifierKeys.HasFlag(Keys.Alt))
((ToolStripMenuItem)SortMenu.Items[0]).DropDownItems[0].PerformClick(); // Clear
else if (ModifierKeys.HasFlag(Keys.Control))
((ToolStripMenuItem)SortMenu.Items[1]).DropDownItems[0].PerformClick(); // Sort
GetSorter()(PKMSorting.OrderBySpecies, false); // Sort
return;
Action<Func<IEnumerable<PKM>, IEnumerable<PKM>>, bool> GetSorter() => ModifierKeys.HasFlag(Keys.Shift)
? SortAll
: (Action<Func<IEnumerable<PKM>, IEnumerable<PKM>>, bool>) SortCurrent;
}
var pt = Tab_Box.PointToScreen(new Point(0, 0));
SortMenu.Show(pt);