mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-23 18:40:15 +00:00
DolphinWX: Fix toolbar creation on macOS
This commit is contained in:
parent
6c16f1be8a
commit
4d2f058fe8
@ -324,7 +324,7 @@ CFrame::CFrame(wxFrame* parent, wxWindowID id, const wxString& title, wxRect geo
|
|||||||
g_pCodeWindow->Load();
|
g_pCodeWindow->Load();
|
||||||
}
|
}
|
||||||
|
|
||||||
wxFrame::CreateToolBar(wxTB_DEFAULT_STYLE | wxTB_TEXT | wxTB_FLAT);
|
wxFrame::CreateToolBar(wxTB_DEFAULT_STYLE | wxTB_TEXT | wxTB_FLAT)->Realize();
|
||||||
|
|
||||||
// Give it a status bar
|
// Give it a status bar
|
||||||
SetStatusBar(CreateStatusBar(2, wxST_SIZEGRIP, ID_STATUSBAR));
|
SetStatusBar(CreateStatusBar(2, wxST_SIZEGRIP, ID_STATUSBAR));
|
||||||
|
@ -21,7 +21,6 @@ MainToolBar::MainToolBar(ToolBarType type, wxWindow* parent, wxWindowID id, cons
|
|||||||
wxToolBar::SetToolBitmapSize(FromDIP(wxSize{32, 32}));
|
wxToolBar::SetToolBitmapSize(FromDIP(wxSize{32, 32}));
|
||||||
InitializeBitmaps();
|
InitializeBitmaps();
|
||||||
AddToolBarButtons();
|
AddToolBarButtons();
|
||||||
wxToolBar::Realize();
|
|
||||||
|
|
||||||
BindEvents();
|
BindEvents();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user