From bc4243faa1aced71d75ba3721b0ea0a741c9b3a4 Mon Sep 17 00:00:00 2001 From: MayNL Date: Sun, 2 Aug 2026 15:01:02 -0400 Subject: [PATCH] Fixed the GRF window bug -Fixed a bug where the GRF Editor would hide the entire program when closed --- PCK-Studio/Controls/Editor/PckEditor.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PCK-Studio/Controls/Editor/PckEditor.cs b/PCK-Studio/Controls/Editor/PckEditor.cs index b07905df..eab9d3a2 100644 --- a/PCK-Studio/Controls/Editor/PckEditor.cs +++ b/PCK-Studio/Controls/Editor/PckEditor.cs @@ -447,7 +447,7 @@ namespace PckStudio.Controls ItemSelectionPopUp dialog = new ItemSelectionPopUp(cZLIB, cDEFLATE, cXMEM); dialog.LabelText = "Type"; dialog.ButtonText = "Ok"; - if (dialog.ShowDialog() != DialogResult.OK) + if (dialog.ShowDialog(this) != DialogResult.OK) return; GameRuleFile.CompressionType compressiontype = dialog.SelectedItem switch @@ -466,7 +466,7 @@ namespace PckStudio.Controls }); using GameRuleFileEditor grfEditor = new GameRuleFileEditor(grf, saveContext); - if (grfEditor.ShowDialog(this) == DialogResult.OK) + if (grfEditor.ShowDialog() == DialogResult.OK) { _wasModified = true; UpdateRichPresence();