GRF Editor - Fixed SetCompressionLevel being called when file failed to load

This commit is contained in:
miku-666
2023-05-25 20:39:11 +02:00
parent c59317699b
commit c25b5c2a8d

View File

@@ -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);
}
}