Skip to content

Commit

Permalink
fixed restore sort regression from previous version
Browse files Browse the repository at this point in the history
  • Loading branch information
setsumi committed Nov 26, 2024
1 parent 04efa20 commit 3d8ade0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/syosetuDownloader/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/syosetuDownloader/Util.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3d8ade0

Please sign in to comment.