Force value changed and invalidate implementation in property adapter.
This commit is contained in:
@@ -30,7 +30,7 @@ namespace Cryville.Crtr.Config {
|
||||
public void SetValue(string key, object value) {
|
||||
_store[key] = value;
|
||||
foreach (var prop in _props) {
|
||||
prop.OnValueChanged();
|
||||
prop.Invalidate();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -79,9 +79,8 @@ namespace Cryville.Crtr.Config {
|
||||
}
|
||||
|
||||
public event Action ValueChanged;
|
||||
public void OnValueChanged() {
|
||||
var ev = ValueChanged;
|
||||
if (ev != null) ev();
|
||||
public void Invalidate() {
|
||||
ValueChanged?.Invoke();
|
||||
}
|
||||
|
||||
public bool SetMapped { get { return false; } }
|
||||
|
Reference in New Issue
Block a user