mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-01-31 21:00:56 +00:00
Map Analysis Mode: checked status of checks is now remembered between sessions. Resolves #629
This commit is contained in:
parent
8f70ab66f2
commit
dee9a2a183
1 changed files with 12 additions and 2 deletions
|
@ -119,10 +119,11 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
if(checker.SkipCheck) continue;
|
||||
|
||||
ErrorCheckerAttribute checkerattr = (attr[0] as ErrorCheckerAttribute);
|
||||
|
||||
|
||||
// Add the type to the checkbox list
|
||||
string checkclassname = t.Name.ToLowerInvariant();
|
||||
CheckBox c = checks.Add(checkerattr.DisplayName, t);
|
||||
c.Checked = checkerattr.DefaultChecked;
|
||||
c.Checked = General.Settings.ReadPluginSetting("errorchecks." + checkclassname, checkerattr.DefaultChecked);
|
||||
}
|
||||
}
|
||||
checks.Sort(); //mxd
|
||||
|
@ -311,6 +312,15 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
resultslist.Clear();
|
||||
results.Items.Clear();
|
||||
|
||||
// Write checked status of checks to the config
|
||||
foreach(CheckBox c in checks.Checkboxes)
|
||||
{
|
||||
Type t = c.Tag as Type;
|
||||
|
||||
if (t != null)
|
||||
General.Settings.WritePluginSetting("errorchecks." + t.Name.ToLowerInvariant(), c.Checked);
|
||||
}
|
||||
|
||||
this.Hide();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue