fix(color): quick menu may not highlight last selected menu icon (#7551)

This commit is contained in:
philmoz
2026-07-14 13:06:07 +10:00
committed by GitHub
parent 81c14da62b
commit 4ddc13ab16
@@ -353,8 +353,12 @@ void QuickMenu::openQM(PageGroupBase* newPageGroup, QMPage newCurPage)
setFocus(curPage); setFocus(curPage);
} else { } else {
#if VERSION_MAJOR > 2 #if VERSION_MAJOR > 2
if (curPage == QM_MANAGE_MODELS) for (int i = 0; qmTopItems[i].icon != EDGETX_ICONS_COUNT; i += 1) {
mainMenu->setCurrent(favoritesMenuItems[0].icon == EDGETX_ICONS_COUNT ? 0 : 1); if (qmTopItems[i].qmPage == curPage && qmTopItems[i].pageAction == QM_ACTION) {
mainMenu->setCurrent(i);
break;
}
}
#endif #endif
focusMainMenu(); focusMainMenu();
} }