Fix widget options not triggering storageDirty

Fixes #958
This commit is contained in:
Peter Feerick
2021-10-27 09:38:18 +10:00
committed by Peter Feerick
parent 036af8e3e2
commit 8bb04e2a38
@@ -79,6 +79,7 @@ WidgetSettings::WidgetSettings(Window * parent, Widget * widget) :
}, },
[=](int8_t newValue) { [=](int8_t newValue) {
widget->getOptionValue(optIdx)->boolValue = newValue; widget->getOptionValue(optIdx)->boolValue = newValue;
SET_DIRTY();
}); });
break; break;
@@ -96,6 +97,7 @@ WidgetSettings::WidgetSettings(Window * parent, Widget * widget) :
}, },
[=](int newValue) { // setValue [=](int newValue) { // setValue
widget->getOptionValue(optIdx)->unsignedValue = (uint32_t) newValue; widget->getOptionValue(optIdx)->unsignedValue = (uint32_t) newValue;
SET_DIRTY();
}); });
break; break;
} }