Skip to content

Commit dd73765

Browse files
committed
Fix possible crash from clicking invalid undo item in undo history form by refreshing undo form when max steps changes.
1 parent 50662f8 commit dd73765

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.MenuItems.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -717,6 +717,11 @@ public void UpdateChangeLogMaxSteps(int value)
717717
{
718718
branch.ChangeLog.MaxSteps = value;
719719
}
720+
721+
if (_undoForm != null && !_undoForm.IsDisposed)
722+
{
723+
_undoForm.UpdateValues();
724+
}
720725
}
721726

722727
private void SetRewindStepFastMenuItem_Click(object sender, EventArgs e)

0 commit comments

Comments
 (0)