Skip to content

Commit dfc1436

Browse files
committed
Comment says we want to update after a turbo seek. So, don't update if we weren't turbo seeking. (This removes double-updating tools after reaching the desired frame, unless turbo seek is turned on.)
1 parent 9e8cf71 commit dfc1436

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/BizHawk.Client.EmuHawk/MainForm.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -844,10 +844,11 @@ private set
844844

845845
set
846846
{
847+
bool wasTurboSeeking = IsTurboSeeking;
847848
_pauseOnFrame = value;
848849
SetPauseStatusBarIcon();
849850

850-
if (value == null) // TODO: make an Event handler instead, but the logic here is that after turbo seeking, tools will want to do a real update when the emulator finally pauses
851+
if (wasTurboSeeking && value == null) // TODO: make an Event handler instead, but the logic here is that after turbo seeking, tools will want to do a real update when the emulator finally pauses
851852
{
852853
Tools.UpdateToolsBefore();
853854
Tools.UpdateToolsAfter();

0 commit comments

Comments
 (0)