MainForm - Fix trying to delete non existing loc key

This commit is contained in:
miku-666
2024-03-14 18:00:21 +01:00
parent 60958860ce
commit ab8a42c132

View File

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