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

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());