Find the latest patcher download when moving patcher to cache

This commit is contained in:
DrakiaXYZ 2024-03-23 17:25:40 -07:00
parent 1f9ace4763
commit 971b648f2a

View File

@ -69,7 +69,7 @@ public partial class WhyCacheThoughDialog : UserControl
return; return;
} }
_foundPatcher = downloadsFolder.GetFiles("Patcher_*").FirstOrDefault(); _foundPatcher = downloadsFolder.GetFiles("Patcher_*").OrderByDescending(p => p.CreationTime).FirstOrDefault();
if (_foundPatcher == null || !_foundPatcher.Exists) if (_foundPatcher == null || !_foundPatcher.Exists)
{ {