fix(color): in manage models, long press on selected model button clears checked state (#7707)
This commit is contained in:
@@ -140,7 +140,6 @@ class ModelButton : public Button
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
showNoImgMsg();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
@@ -257,10 +256,12 @@ class ModelsPageBody : public Window
|
|||||||
|
|
||||||
// Long Press Handler for Models
|
// Long Press Handler for Models
|
||||||
button->setLongPressHandler([=]() -> uint8_t {
|
button->setLongPressHandler([=]() -> uint8_t {
|
||||||
button->setFocused();
|
if (model != focusedModel) {
|
||||||
focusedModel = model;
|
button->setFocused();
|
||||||
|
focusedModel = model;
|
||||||
|
}
|
||||||
openMenu();
|
openMenu();
|
||||||
return 0;
|
return model == modelslist.getCurrentModel();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user