From 3d8ade0d7249e7226321a89c753d64b64985b356 Mon Sep 17 00:00:00 2001 From: setsumi Date: Tue, 26 Nov 2024 21:20:27 +1000 Subject: [PATCH] fixed restore sort regression from previous version --- src/syosetuDownloader/MainWindow.xaml.cs | 2 +- src/syosetuDownloader/Util.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/syosetuDownloader/MainWindow.xaml.cs b/src/syosetuDownloader/MainWindow.xaml.cs index 3c7d765..be591a3 100644 --- a/src/syosetuDownloader/MainWindow.xaml.cs +++ b/src/syosetuDownloader/MainWindow.xaml.cs @@ -65,7 +65,7 @@ public partial class MainWindow : Window static readonly Random _random = new Random((int)DateTime.Now.Ticks & 0x0000FFFF); static readonly InputSimulator _sim = new InputSimulator(); - readonly string _version = "2.4.0 plus 28"; + readonly string _version = "2.4.0 plus 29"; readonly Shell32.Shell _shell; public Util.GridViewTool.SortInfo sortInfo = new Util.GridViewTool.SortInfo(); diff --git a/src/syosetuDownloader/Util.cs b/src/syosetuDownloader/Util.cs index c9cb821..54f6202 100644 --- a/src/syosetuDownloader/Util.cs +++ b/src/syosetuDownloader/Util.cs @@ -30,7 +30,7 @@ public static void SetSort(ListView listView, SortInfo sort) if (string.IsNullOrEmpty(currentSort.PropertyName) || 0 != string.CompareOrdinal(currentSort.ColumnName, sort.ColumnName)) { // different column - number = sort.Direction == ListSortDirection.Descending ? 2 : 1; + number = sort.Direction == ListSortDirection.Descending ? 1 : 2; } else { // same column