From c25b5c2a8d1e10d5ff37d0bf643a29ed6bc5750f Mon Sep 17 00:00:00 2001 From: miku-666 <74728189+NessieHax@users.noreply.github.com> Date: Thu, 25 May 2023 20:39:11 +0200 Subject: [PATCH] GRF Editor - Fixed SetCompressionLevel being called when file failed to load --- PCK-Studio/Forms/Editor/GameRuleFileEditor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PCK-Studio/Forms/Editor/GameRuleFileEditor.cs b/PCK-Studio/Forms/Editor/GameRuleFileEditor.cs index 549b4f30..15a3b165 100644 --- a/PCK-Studio/Forms/Editor/GameRuleFileEditor.cs +++ b/PCK-Studio/Forms/Editor/GameRuleFileEditor.cs @@ -103,9 +103,9 @@ namespace PckStudio.Forms.Editor private void ReloadGameRuleTree() { GrfTreeView.Nodes.Clear(); - SetCompressionLevel(); if (_file is not null) { + SetCompressionLevel(); LoadGameRuleTree(GrfTreeView.Nodes, _file.Root); } }