fix(color): quick menu may not highlight last selected menu icon (#7551)
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user