feat: rename Pull Outdated button and sort new/updated files first

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Erik 2026-03-23 12:33:46 +01:00
parent 3bcd7d9e49
commit 269964e3d3
3 changed files with 8 additions and 2 deletions

View file

@ -156,7 +156,7 @@
<control progid="DecalControls.PushButton" name="btnRefreshMetasList" left="10" top="45" width="95" height="22" text="Refresh List"/>
<control progid="DecalControls.PushButton" name="btnCheckMetasUpdates" left="110" top="45" width="95" height="22" text="Check Updates"/>
<control progid="DecalControls.PushButton" name="btnDownloadOutdatedMetas" left="210" top="45" width="120" height="22" text="Pull Outdated"/>
<control progid="DecalControls.PushButton" name="btnDownloadOutdatedMetas" left="210" top="45" width="120" height="22" text="Download Outdated"/>
<control progid="DecalControls.StaticText" name="lblMetasSearch" left="10" top="70" width="45" height="16" text="Search:"/>
<control progid="DecalControls.Edit" name="txtMetasSearch" left="58" top="68" width="212" height="20" text=""/>

View file

@ -1432,7 +1432,13 @@ namespace MosswartMassacre.Views
}
lstMetasFiles.ClearRows();
var files = ApplyMetasSearch(MetaSyncManager.GetCachedFiles());
var files = ApplyMetasSearch(MetaSyncManager.GetCachedFiles())
.OrderBy(f => f.Status == MetaFileSyncStatus.NotDownloaded ? 0
: f.Status == MetaFileSyncStatus.UpdateAvailable ? 1
: f.Status == MetaFileSyncStatus.Error ? 2
: 3)
.ThenBy(f => f.RelativePath, StringComparer.OrdinalIgnoreCase)
.ToList();
if (files == null || files.Count == 0)
{