Only apply theme option changes when exiting edit mode for color type options (fix #3799)

This commit is contained in:
Kilrah
2017-11-13 00:17:35 +01:00
parent 9d7dab724b
commit 7f05df2627
+7 -1
View File
@@ -515,7 +515,13 @@ bool menuScreensTheme(event_t event)
if (index < optionsCount) {
const ZoneOption * option = &options[index];
ZoneOptionValue * value = theme->getOptionValue(index);
if (editZoneOption(y, option, value, attr, EE_GENERAL, event)) {
bool ret = editZoneOption(y, option, value, attr, EE_GENERAL, event);
if (option->type == ZoneOption::Color) {
if (event == EVT_KEY_FIRST(KEY_EXIT)) {
theme->update();
}
}
else if (ret) {
theme->update();
}
}