From 971b648f2a9f0918c8d9db76145f102332d3fa0d Mon Sep 17 00:00:00 2001 From: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com> Date: Sat, 23 Mar 2024 17:25:40 -0700 Subject: [PATCH] Find the latest patcher download when moving patcher to cache --- .../CustomControls/Dialogs/WhyCacheThoughDialog.axaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SPTInstaller/CustomControls/Dialogs/WhyCacheThoughDialog.axaml.cs b/SPTInstaller/CustomControls/Dialogs/WhyCacheThoughDialog.axaml.cs index 1807fe0..5e1d86b 100644 --- a/SPTInstaller/CustomControls/Dialogs/WhyCacheThoughDialog.axaml.cs +++ b/SPTInstaller/CustomControls/Dialogs/WhyCacheThoughDialog.axaml.cs @@ -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) {