Merge pull request 'Find the latest patcher download when moving patcher to cache' (#61) from DrakiaXYZ/SPT-AKI-Installer:feat-find-latest-patcher into master

Reviewed-on: CWX/SPT-AKI-Installer#61
This commit is contained in:
IsWaffle 2024-03-25 01:04:30 +00:00
commit 65bf23d76c

View File

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