UDBScript: expanded/collapsed status of the directory structure is now saved correctly

This commit is contained in:
biwa 2021-11-28 15:01:09 +01:00
parent 843058c76c
commit 86cc9ca909

View file

@ -226,11 +226,11 @@ namespace CodeImp.DoomBuilder.UDBScript
{
if(root.Expanded)
{
General.Settings.WritePluginSetting("directoryexpand." + root.Hash, true);
General.Settings.DeletePluginSetting("directoryexpand." + root.Hash);
}
else
{
General.Settings.DeletePluginSetting("directoryexpand." + root.Hash);
General.Settings.WritePluginSetting("directoryexpand." + root.Hash, false);
}
foreach (ScriptDirectoryStructure sds in root.Directories)