fix(color): in manage models, long press on selected model button clears checked state (#7707)

This commit is contained in:
philmoz
2026-08-26 09:16:16 +10:00
committed by GitHub
parent 298e6e6d32
commit 94d5a89e33
@@ -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();
});
}