fix: avoid NRE in BeltSignal reset and remove no-op GalaxySelectUI reset

This commit is contained in:
soarqin committed 2026-06-23 22:27:27 +08:00
1 parent 647b130993
commit cca8b8594d
2 files changed
+1 -8

No files matched your search

@@ -30,21 +30,14 @@ public static class GalaxySelectUIPatch
{
MoreSettings.Enabled.SettingChanged += OnEnabledChanged;
Enable(MoreSettings.Enabled.Value);
GameLogicProc.OnGameEnd += ResetState;
}
public static void Uninit()
{
GameLogicProc.OnGameEnd -= ResetState;
MoreSettings.Enabled.SettingChanged -= OnEnabledChanged;
Enable(false);
}
private static void ResetState()
{
// No per-game mutable fields in this file; UI references are lifecycle-safe.
}
private static void OnEnabledChanged(object sender, System.EventArgs e)
{
Enable(MoreSettings.Enabled.Value);