From af877524757c78ea36688b871f19bdf96477524a Mon Sep 17 00:00:00 2001 From: Kurt Date: Tue, 14 Aug 2018 19:39:14 -0700 Subject: [PATCH] Reference underlying control visibility closes #2092 --- PKHeX.WinForms/Controls/SAV Editor/SAVEditor.cs | 2 +- PKHeX.WinForms/Subforms/Save Editors/SAV_BoxViewer.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/PKHeX.WinForms/Controls/SAV Editor/SAVEditor.cs b/PKHeX.WinForms/Controls/SAV Editor/SAVEditor.cs index ba939c561..a5aedcb76 100644 --- a/PKHeX.WinForms/Controls/SAV Editor/SAVEditor.cs +++ b/PKHeX.WinForms/Controls/SAV Editor/SAVEditor.cs @@ -97,7 +97,7 @@ namespace PKHeX.WinForms.Controls Tab_Box.MouseWheel += (s, e) => { - if (menu.Visible) + if (menu.mnuVSD.Visible) return; if (e.Delta > 1) Box.MoveLeft(); diff --git a/PKHeX.WinForms/Subforms/Save Editors/SAV_BoxViewer.cs b/PKHeX.WinForms/Subforms/Save Editors/SAV_BoxViewer.cs index a1758d1b0..33c10b23d 100644 --- a/PKHeX.WinForms/Subforms/Save Editors/SAV_BoxViewer.cs +++ b/PKHeX.WinForms/Subforms/Save Editors/SAV_BoxViewer.cs @@ -27,7 +27,7 @@ namespace PKHeX.WinForms MouseWheel += (s, e) => { - if (parent.menu.Visible) + if (parent.menu.mnuVSD.Visible) return; if (e.Delta > 1) Box.MoveLeft();