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:
@@ -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(() =>
|
||||
|
||||
Reference in New Issue
Block a user