mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-04 15:19:09 +00:00
Allow toggling the toolbar in the menu
This commit is contained in:
parent
400a7bd612
commit
67d67884a1
1 changed files with 7 additions and 12 deletions
|
@ -1891,26 +1891,21 @@ void CFrame::OnToggleToolbar(wxCommandEvent& event)
|
||||||
}
|
}
|
||||||
void CFrame::DoToggleToolbar(bool _show)
|
void CFrame::DoToggleToolbar(bool _show)
|
||||||
{
|
{
|
||||||
if (_show)
|
GetToolBar()->Show(_show);
|
||||||
{
|
|
||||||
m_Mgr->GetPane("TBMain").Show();
|
|
||||||
if (g_pCodeWindow)
|
if (g_pCodeWindow)
|
||||||
{
|
{
|
||||||
m_Mgr->GetPane("TBDebug").Show();
|
if (_show)
|
||||||
|
{
|
||||||
m_Mgr->GetPane("TBAui").Show();
|
m_Mgr->GetPane("TBAui").Show();
|
||||||
}
|
}
|
||||||
m_Mgr->Update();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
m_Mgr->GetPane("TBMain").Hide();
|
|
||||||
if (g_pCodeWindow)
|
|
||||||
{
|
|
||||||
m_Mgr->GetPane("TBDebug").Hide();
|
|
||||||
m_Mgr->GetPane("TBAui").Hide();
|
m_Mgr->GetPane("TBAui").Hide();
|
||||||
}
|
}
|
||||||
m_Mgr->Update();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_Mgr->Update();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Enable and disable the status bar
|
// Enable and disable the status bar
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue