(WIN32) Read menubar shortcuts with menubar hidden (#16291)

This commit is contained in:
sonninnos 2024-02-26 16:01:33 +02:00 committed by GitHub
parent 59381b7312
commit 55f1120036
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1061,9 +1061,7 @@ static LRESULT CALLBACK wnd_proc_common(
case WM_COMMAND: case WM_COMMAND:
{ {
settings_t *settings = config_get_ptr(); settings_t *settings = config_get_ptr();
bool ui_menubar_enable = settings ? settings->bools.ui_menubar_enable : false; win32_menu_loop(main_window.hwnd, wparam);
if (ui_menubar_enable)
win32_menu_loop(main_window.hwnd, wparam);
} }
break; break;
} }