mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Win32: Enable/disable menu items when a menu is popped down. Allows us to avoid calling UpdateUI from sceUmd. Should fix #9546
This commit is contained in:
1 parent
0ca16c29ae
commit
0a0aa02aae
4 files changed
+6
-11
No files matched your search
@@ -880,9 +880,10 @@ namespace MainWindow
|
||||
break;
|
||||
|
||||
case WM_MENUSELECT:
|
||||
// Unfortunately, accelerate keys (hotkeys) shares the same enabled/disabled states
|
||||
// with corresponding menu items.
|
||||
// Called when a menu is opened. Also when an item is selected, but meh.
|
||||
// This is a good place to update the enabled/disabled state of menu items.
|
||||
UpdateMenus();
|
||||
SetIngameMenuItemStates(menu, GetUIState());
|
||||
WindowsRawInput::NotifyMenu();
|
||||
break;
|
||||
|
||||
|
||||
Reference in new issue
Block a user