From 6099d4006eafb8485122cf08dd027e6a37c30332 Mon Sep 17 00:00:00 2001 From: adelikat Date: Wed, 22 Oct 2014 22:43:42 +0000 Subject: [PATCH] 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 --- BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.Designer.cs | 1 + BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.cs | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.Designer.cs b/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.Designer.cs index 408f48eb2b..4f01240c04 100644 --- a/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.Designer.cs +++ b/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.Designer.cs @@ -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); diff --git a/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.cs b/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.cs index 14b3768d79..684848412e 100644 --- a/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.cs +++ b/BizHawk.Client.EmuHawk/tools/TAStudio/TAStudio.cs @@ -627,6 +627,11 @@ namespace BizHawk.Client.EmuHawk } } + private void TAStudio_MouseLeave(object sender, EventArgs e) + { + DoTriggeredAutoRestoreIfNeeded(); + } + #endregion } }