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;
|
||||
}
|
||||
}
|
||||
showNoImgMsg();
|
||||
}
|
||||
|
||||
return false;
|
||||
@@ -257,10 +256,12 @@ class ModelsPageBody : public Window
|
||||
|
||||
// Long Press Handler for Models
|
||||
button->setLongPressHandler([=]() -> uint8_t {
|
||||
button->setFocused();
|
||||
focusedModel = model;
|
||||
if (model != focusedModel) {
|
||||
button->setFocused();
|
||||
focusedModel = model;
|
||||
}
|
||||
openMenu();
|
||||
return 0;
|
||||
return model == modelslist.getCurrentModel();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user