From ab8a42c1320d7d6d5ab97f441b50f040d01b09a2 Mon Sep 17 00:00:00 2001 From: miku-666 <74728189+NessieHax@users.noreply.github.com> Date: Thu, 14 Mar 2024 18:00:21 +0100 Subject: [PATCH] MainForm - Fix trying to delete non existing loc key --- PCK-Studio/MainForm.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PCK-Studio/MainForm.cs b/PCK-Studio/MainForm.cs index 48d3f2a6..e3398be6 100644 --- a/PCK-Studio/MainForm.cs +++ b/PCK-Studio/MainForm.cs @@ -723,7 +723,9 @@ namespace PckStudio { if (TryGetLocFile(out LOCFile locFile)) { + if (file.Properties.HasProperty("THEMENAMEID")) locFile.RemoveLocKey(file.Properties.GetPropertyValue("THEMENAMEID")); + if (file.Properties.HasProperty("DISPLAYNAMEID")) locFile.RemoveLocKey(file.Properties.GetPropertyValue("DISPLAYNAMEID")); TrySetLocFile(locFile); }