remember to set pauseInterrupted = false, when responding to said flag. Use TasView mouse leave instead of form leave for leave logic, since form leave doesn't fire if you move your mouse too fast because winforms is bad. This fixes #2275 and #2258

This commit is contained in:
adelikat 2020-08-08 10:49:12 -05:00
parent b101df8235
commit 78b03cbdec
2 changed files with 3 additions and 2 deletions

View File

@ -1195,7 +1195,6 @@ namespace BizHawk.Client.EmuHawk
this.Load += new System.EventHandler(this.Tastudio_Load);
this.DragDrop += new System.Windows.Forms.DragEventHandler(this.TAStudio_DragDrop);
this.DragEnter += new System.Windows.Forms.DragEventHandler(this.DragEnterWrapper);
this.MouseLeave += new System.EventHandler(this.TAStudio_MouseLeave);
this.TASMenu.ResumeLayout(false);
this.TASMenu.PerformLayout();
this.TasStatusStrip.ResumeLayout(false);

View File

@ -137,6 +137,7 @@ namespace BizHawk.Client.EmuHawk
BookMarkControl.LoadedCallback = BranchLoaded;
BookMarkControl.SavedCallback = BranchSaved;
BookMarkControl.RemovedCallback = BranchRemoved;
TasView.MouseLeave += TAStudio_MouseLeave;
}
private void Tastudio_Load(object sender, EventArgs e)
@ -1007,7 +1008,8 @@ namespace BizHawk.Client.EmuHawk
if (_playbackInterrupted)
{
MainForm.UnpauseEmulator();
MainForm.UnpauseEmulator();
_playbackInterrupted = false;
}
}