From 0d5d8366f6ef10c27b1ff8a4ca01584d398cff2d Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Mon, 27 Oct 2025 00:35:05 +0000 Subject: [PATCH] [GUI] Simplify sector tag ordering in ImageConvertViewModel --- Aaru.Gui/ViewModels/Windows/ImageConvertViewModel.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Aaru.Gui/ViewModels/Windows/ImageConvertViewModel.cs b/Aaru.Gui/ViewModels/Windows/ImageConvertViewModel.cs index c2e23bf6c..52c1a49dd 100644 --- a/Aaru.Gui/ViewModels/Windows/ImageConvertViewModel.cs +++ b/Aaru.Gui/ViewModels/Windows/ImageConvertViewModel.cs @@ -384,7 +384,7 @@ public sealed partial class ImageConvertViewModel : ViewModelBase { ProgressMaxValue += tracks.Count; - foreach(SectorTagType tag in _inputFormat.Info.ReadableSectorTags.OrderBy(t => t)) + foreach(SectorTagType tag in _inputFormat.Info.ReadableSectorTags.Order()) { switch(tag) { @@ -875,7 +875,7 @@ public sealed partial class ImageConvertViewModel : ViewModelBase Dictionary smallestPregapLbaPerTrack = new(); foreach(SectorTagType tag in _inputFormat.Info.ReadableSectorTags.Where(t => t == SectorTagType.CdTrackIsrc) - .OrderBy(t => t)) + .Order()) { foreach(Track track in inputOptical.Tracks) { @@ -889,7 +889,7 @@ public sealed partial class ImageConvertViewModel : ViewModelBase foreach(SectorTagType tag in _inputFormat.Info.ReadableSectorTags .Where(t => t == SectorTagType.CdTrackFlags) - .OrderBy(t => t)) + .Order()) { foreach(Track track in inputOptical.Tracks) { @@ -1352,7 +1352,7 @@ public sealed partial class ImageConvertViewModel : ViewModelBase Progress2Value = Progress2MaxValue; }); - foreach(SectorTagType tag in _inputFormat.Info.ReadableSectorTags.OrderBy(t => t) + foreach(SectorTagType tag in _inputFormat.Info.ReadableSectorTags.Order() .TakeWhile(_ => useLong && !_cancel)) { switch(tag)