From 03cef9b709106ee5a0c18330fdfe2fc2332f91d8 Mon Sep 17 00:00:00 2001 From: Nikolaj Olsson Date: Mon, 29 Apr 2024 19:38:35 +0200 Subject: [PATCH] Add sort direction icon in "Batch convert" --- src/ui/Forms/BatchConvert.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/ui/Forms/BatchConvert.cs b/src/ui/Forms/BatchConvert.cs index 9e8ec11fc..71e77afee 100644 --- a/src/ui/Forms/BatchConvert.cs +++ b/src/ui/Forms/BatchConvert.cs @@ -3992,6 +3992,11 @@ namespace Nikse.SubtitleEdit.Forms return; } + for (var i = 0; i < listViewInputFiles.Columns.Count; i++) + { + ListViewSorter.SetSortArrow(listViewInputFiles.Columns[i], SortOrder.None); + } + if (!(listViewInputFiles.ListViewItemSorter is ListViewSorter sorter)) { sorter = new ListViewSorter @@ -4014,7 +4019,10 @@ namespace Nikse.SubtitleEdit.Forms sorter.IsNumber = false; sorter.IsDisplayFileSize = e.Column == columnHeaderSize.DisplayIndex; } + listViewInputFiles.Sort(); + + ListViewSorter.SetSortArrow(listViewInputFiles.Columns[e.Column], sorter.Descending ? SortOrder.Descending : SortOrder.Ascending); } private void buttonBrowseEncoding_Click(object sender, EventArgs e)