mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Frame: Separate menu creation into individual functions
Keeps related menu items together based on top level menu. This will be more convenient in the future when debugger menu bar item handling is moved to CFrame, as it won't be a huge amount of code in one function. This also makes it easier to locate menu bar code whenever it needs to be changed.
This commit is contained in:
@ -401,10 +401,10 @@ CFrame::CFrame(wxFrame* parent, wxWindowID id, const wxString& title, wxRect geo
|
||||
GetStatusBar()->Hide();
|
||||
|
||||
// Give it a menu bar
|
||||
wxMenuBar* menubar_active = CreateMenu();
|
||||
wxMenuBar* menubar_active = CreateMenuBar();
|
||||
SetMenuBar(menubar_active);
|
||||
// Create a menubar to service requests while the real menubar is hidden from the screen
|
||||
m_menubar_shadow = CreateMenu();
|
||||
m_menubar_shadow = CreateMenuBar();
|
||||
|
||||
// ---------------
|
||||
// Main panel
|
||||
@ -1306,7 +1306,7 @@ void CFrame::DoFullscreen(bool enable_fullscreen)
|
||||
// Recreate the menubar if needed.
|
||||
if (wxFrame::GetMenuBar() == nullptr)
|
||||
{
|
||||
SetMenuBar(CreateMenu());
|
||||
SetMenuBar(CreateMenuBar());
|
||||
}
|
||||
|
||||
// Show statusbar if enabled
|
||||
|
Reference in New Issue
Block a user