Fix MRU menus (#48)

Broken in 9bbfdddde0. I don't understand
why the author made such a change, so I left their solution with #ifdef
guard.
This commit is contained in:
Marcin Kurczewski 2018-05-28 21:24:23 +02:00 committed by Thomas Goyne
parent a32bf7acdc
commit a4bde47c5c
1 changed files with 6 additions and 1 deletions

View File

@ -529,8 +529,13 @@ namespace menu {
}
}
#ifdef __WXMAC__
menu->Bind(wxEVT_MENU_OPEN, &CommandManager::OnMenuOpen, &menu->cm);
menu->Bind(wxEVT_MENU, &CommandManager::OnMenuClick, &menu->cm);
#else
window->Bind(wxEVT_MENU_OPEN, &CommandManager::OnMenuOpen, &menu->cm);
window->Bind(wxEVT_MENU, &CommandManager::OnMenuClick, &menu->cm);
#endif
#ifdef __WXMAC__
bind_events(menu.get());