Fixed the GRF window bug

-Fixed a bug where the GRF Editor would hide the entire program when closed
This commit is contained in:
MayNL
2026-08-02 15:01:02 -04:00
parent 7c07014b03
commit bc4243faa1

View File

@@ -447,7 +447,7 @@ namespace PckStudio.Controls
ItemSelectionPopUp dialog = new ItemSelectionPopUp(cZLIB, cDEFLATE, cXMEM); ItemSelectionPopUp dialog = new ItemSelectionPopUp(cZLIB, cDEFLATE, cXMEM);
dialog.LabelText = "Type"; dialog.LabelText = "Type";
dialog.ButtonText = "Ok"; dialog.ButtonText = "Ok";
if (dialog.ShowDialog() != DialogResult.OK) if (dialog.ShowDialog(this) != DialogResult.OK)
return; return;
GameRuleFile.CompressionType compressiontype = dialog.SelectedItem switch GameRuleFile.CompressionType compressiontype = dialog.SelectedItem switch
@@ -466,7 +466,7 @@ namespace PckStudio.Controls
}); });
using GameRuleFileEditor grfEditor = new GameRuleFileEditor(grf, saveContext); using GameRuleFileEditor grfEditor = new GameRuleFileEditor(grf, saveContext);
if (grfEditor.ShowDialog(this) == DialogResult.OK) if (grfEditor.ShowDialog() == DialogResult.OK)
{ {
_wasModified = true; _wasModified = true;
UpdateRichPresence(); UpdateRichPresence();