summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/Frame.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2014-08-14 17:13:06 -0400
committerLioncash <mathew1800@gmail.com>2014-08-14 17:13:06 -0400
commit16a7e6dce5f8fa74587d2828638c395769ce1523 (patch)
tree95e1d78d48ea5fea39612e618340c7c7543ddd0b /Source/Core/DolphinWX/Frame.cpp
parent3c2567cc37391cb63cd1a9c80af452157ea02089 (diff)
parent7af80c77129988654566ea032548ac8f88e78a85 (diff)
Merge pull request #787 from archshift/fs-toolbar
Hides toolbar upon using fullscreen and rendering to main window.
Diffstat (limited to 'Source/Core/DolphinWX/Frame.cpp')
-rw-r--r--Source/Core/DolphinWX/Frame.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/Core/DolphinWX/Frame.cpp b/Source/Core/DolphinWX/Frame.cpp
index 26e825b2f5..e9edc83517 100644
--- a/Source/Core/DolphinWX/Frame.cpp
+++ b/Source/Core/DolphinWX/Frame.cpp
@@ -1242,11 +1242,23 @@ void CFrame::DoFullscreen(bool enable_fullscreen)
// Save the current mode before going to fullscreen
AuiCurrent = m_Mgr->SavePerspective();
m_Mgr->LoadPerspective(AuiFullscreen, true);
+
+ // Hide toolbar
+ DoToggleToolbar(false);
+
+ // Disable toggling toolbar in menu
+ GetMenuBar()->FindItem(IDM_TOGGLE_TOOLBAR)->Enable(false);
}
else
{
// Restore saved perspective
m_Mgr->LoadPerspective(AuiCurrent, true);
+
+ // Restore toolbar to the status it was at before going fullscreen.
+ DoToggleToolbar(SConfig::GetInstance().m_InterfaceToolbar);
+
+ // Re-enable toggling toolbar in menu
+ GetMenuBar()->FindItem(IDM_TOGGLE_TOOLBAR)->Enable(true);
}
}
else