Invalidates property values on ruleset config enable.
This commit is contained in:
@@ -86,6 +86,9 @@ namespace Cryville.Crtr.Browsing.UI {
|
||||
cat.SetActive(true);
|
||||
}
|
||||
|
||||
void OnEnable() {
|
||||
m_genericConfigPanel.InvalidatePropertyValues();
|
||||
}
|
||||
void OnDisable() {
|
||||
if (_loaded) {
|
||||
m_inputConfigPanel.SaveTo(_rscfg.inputs);
|
||||
|
@@ -47,5 +47,13 @@ namespace Cryville.Crtr.Config.UI {
|
||||
_categories[category].Add(p);
|
||||
}
|
||||
}
|
||||
|
||||
public void InvalidatePropertyValues() {
|
||||
foreach (var category in _categories) {
|
||||
foreach (var property in category.Value) {
|
||||
property.Invalidate();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user