DolphinWX: don't refresh MainMenuBar on construction

On startup, wxWidgets pops up an assertion error:

> ./src/osx/menu_osx.cpp(648): assert ""IsAttached()"" failed in
> Refresh(): can't refresh unatteched menubar
This commit is contained in:
Michael Maltese 2017-02-26 17:49:23 -08:00
parent 7bcff99d89
commit 720f0ab93f
1 changed files with 0 additions and 2 deletions

View File

@ -28,8 +28,6 @@ MainMenuBar::MainMenuBar(MenuType type, long style) : wxMenuBar{style}, m_type{t
{
BindEvents();
AddMenus();
MainMenuBar::Refresh(false);
}
void MainMenuBar::Refresh(bool erase_background, const wxRect* rect)