Skip to content
Snippets Groups Projects
Commit 1c02c7e6 authored by codeimp's avatar codeimp
Browse files

Fixed bug in Things Filters which caused removed flag settings to be restored after DB restart.

parent 99f8e014
No related branches found
No related tags found
No related merge requests found
......@@ -167,6 +167,7 @@ namespace CodeImp.DoomBuilder.Config
resources.WriteToConfig(General.Settings.Config, "configurations." + settingskey + ".resources");
// Write filters to configuration
General.Settings.DeleteSetting("configurations." + settingskey + ".thingsfilters");
for(int i = 0; i < thingsfilters.Count; i++)
{
thingsfilters[i].WriteSettings(General.Settings.Config,
......
......@@ -419,6 +419,10 @@ namespace CodeImp.DoomBuilder.Config
internal bool WriteSetting(string setting, object settingvalue) { return cfg.WriteSetting(setting, settingvalue); }
internal bool WriteSetting(string setting, object settingvalue, string pathseperator) { return cfg.WriteSetting(setting, settingvalue, pathseperator); }
// DeleteSetting
internal bool DeleteSetting(string setting) { return cfg.DeleteSetting(setting); }
internal bool DeleteSetting(string setting, string pathseperator) { return cfg.DeleteSetting(setting, pathseperator); }
#endregion
#region ================== Default Settings
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment