mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-05-26 17:56:28 +00:00
MainForm - Fix trying to delete non existing loc key
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user