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; 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();
}); });
} }