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:
parent
7bcff99d89
commit
720f0ab93f
|
@ -28,8 +28,6 @@ MainMenuBar::MainMenuBar(MenuType type, long style) : wxMenuBar{style}, m_type{t
|
||||||
{
|
{
|
||||||
BindEvents();
|
BindEvents();
|
||||||
AddMenus();
|
AddMenus();
|
||||||
|
|
||||||
MainMenuBar::Refresh(false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainMenuBar::Refresh(bool erase_background, const wxRect* rect)
|
void MainMenuBar::Refresh(bool erase_background, const wxRect* rect)
|
||||||
|
|
Loading…
Reference in New Issue