Fix rewind indicator not being updated on core close

fixes eb7296dcd
This commit is contained in:
YoshiRulz 2025-04-10 21:35:53 +10:00
parent f1dce8964d
commit 6e63322f3f
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 3 additions and 2 deletions

View File

@ -4070,8 +4070,7 @@ namespace BizHawk.Client.EmuHawk
AutoSaveStateIfConfigured();
CommitCoreSettingsToConfig();
Rewinder?.Dispose();
Rewinder = null;
DisableRewind();
if (MovieSession.Movie.IsActive()) // Note: this must be called after CommitCoreSettingsToConfig()
{
@ -4165,12 +4164,14 @@ namespace BizHawk.Client.EmuHawk
AddOnScreenMessage($"Rewind {(enabled ? "enabled" : "suspended")}");
}
UpdateStatusBarRewindIndicator();
}
public void DisableRewind()
{
Rewinder?.Dispose();
Rewinder = null;
UpdateStatusBarRewindIndicator();
}
private int SlotToInt(string slot)