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:
@@ -569,9 +569,9 @@ void ModelsPageBody::update()
|
||||
|
||||
// Long Press Handler for Models
|
||||
button->setLongPressHandler([=]() -> uint8_t {
|
||||
if (model == focusedModel) {
|
||||
openMenu();
|
||||
}
|
||||
button->setFocused();
|
||||
focusedModel = model;
|
||||
openMenu();
|
||||
return 0;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user