GRAPHICS: MACGUI: fix the bug when closing the menu, the highlight part was not correctly set

This commit is contained in:
ysj1173886760 2021-04-17 15:23:47 +08:00 committed by Eugene Sandulenko
parent 5d2a73fe01
commit 1d3cf51b7b

View File

@ -1177,6 +1177,11 @@ void MacMenu::closeMenu() {
if (_wm->_mode & kWMModalMenuMode) {
_wm->disableScreenCopy();
}
for (uint i = 0; i < _menustack.size(); i++) {
_menustack[i]->highlight = -1;
}
_activeItem = -1;
_activeSubItem = -1;
_menustack.clear();