Tastudio - just in case do a triggered auto-restore on mouse leave, I think this code should never fire, but you never know what edge cases could trick winform events

This commit is contained in:
adelikat 2014-10-22 22:43:42 +00:00
parent a2722ae10f
commit 6099d4006e
2 changed files with 6 additions and 0 deletions

View File

@ -991,6 +991,7 @@ 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.TAStudio_DragEnter);
this.MouseLeave += new System.EventHandler(this.TAStudio_MouseLeave);
this.TASMenu.ResumeLayout(false);
this.TASMenu.PerformLayout();
this.TasStatusStrip.ResumeLayout(false);

View File

@ -627,6 +627,11 @@ namespace BizHawk.Client.EmuHawk
}
}
private void TAStudio_MouseLeave(object sender, EventArgs e)
{
DoTriggeredAutoRestoreIfNeeded();
}
#endregion
}
}