feat(color): Long press menu no longer restricted to active model on model select page (#3237)

* Update long press handler on model select page.
Long press (via touch) on any model will select it and open the menu.

* Open menu for model just selected on long touch press.
This commit is contained in:
philmoz
2023-02-22 21:53:49 +10:00
committed by GitHub
parent 7aa4999c03
commit f76aea333e
+3 -3
View File
@@ -569,9 +569,9 @@ void ModelsPageBody::update()
// Long Press Handler for Models // Long Press Handler for Models
button->setLongPressHandler([=]() -> uint8_t { button->setLongPressHandler([=]() -> uint8_t {
if (model == focusedModel) { button->setFocused();
openMenu(); focusedModel = model;
} openMenu();
return 0; return 0;
}); });
} }