From ba7646e7a2dd62d747cd13fd934d1aba77d948ef Mon Sep 17 00:00:00 2001 From: Kurt Date: Sun, 25 Aug 2024 10:16:38 -0500 Subject: [PATCH] Fix TopMost appearance for Group Slots viewer SAV editor gui: Used by stadium to show registered teams, the form would misbehave when showing hover previews if you change focus between main window and the popup form. Copy the `form.Owner=ParentForm` behavior from the popup box viewer, which behaves correctly. --- PKHeX.WinForms/Controls/SAV Editor/SAVEditor.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/PKHeX.WinForms/Controls/SAV Editor/SAVEditor.cs b/PKHeX.WinForms/Controls/SAV Editor/SAVEditor.cs index 952183740..0cfee7ec1 100644 --- a/PKHeX.WinForms/Controls/SAV Editor/SAVEditor.cs +++ b/PKHeX.WinForms/Controls/SAV Editor/SAVEditor.cs @@ -690,9 +690,14 @@ public partial class SAVEditor : UserControl, ISlotViewer, ISaveFile { var form = WinFormsUtil.FirstFormOfType(); if (form != null) + { form.CenterToForm(ParentForm); + } else - form = new SAV_GroupViewer(sav, M.Env.PKMEditor, g) { TopMost = true }; + { + form = new SAV_GroupViewer(sav, M.Env.PKMEditor, g); + form.Owner = ParentForm; + } form.BringToFront(); form.Show(); }