Fix updater static init order; clear staged updates on startup

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Exterrata
2026-10-25 02:49:07 -04:00
parent 9bb4f85802
commit 49fb3ca253
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -841,6 +841,7 @@ public class MainViewModel : ObservableObject
RebuildChoices();
}
_ = RefreshBranchesQuietAsync(CancellationToken.None);
_ = Task.Run(() => { try { Directory.Delete(Path.Combine(Paths.Root, "update"), true); } catch (Exception e) when (e is IOException or UnauthorizedAccessException) { } });
if (cfg.CheckUpdates) _ = CheckForUpdateAsync(false);
if (!IsBusy) await RefreshModCoreAsync(MelonLoader, quiet: true);
_ = Task.Run(() =>