summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/Frame.cpp
diff options
context:
space:
mode:
authorarchshift <admin@archshift.com>2014-08-12 17:47:25 -0700
committerarchshift <admin@archshift.com>2014-08-12 17:47:25 -0700
commitb451f561ba3dedab9ca2aec77d1054a7a3526660 (patch)
treea40fdaac7f075b895955604cf756ef3779912fbd /Source/Core/DolphinWX/Frame.cpp
parent7b9c8da468b2a92aa8ec7677bf7766d7491eb214 (diff)
Hide toolbar upon going fullscreen, rendering to main window.
Diffstat (limited to 'Source/Core/DolphinWX/Frame.cpp')
-rw-r--r--Source/Core/DolphinWX/Frame.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Core/DolphinWX/Frame.cpp b/Source/Core/DolphinWX/Frame.cpp
index 26e825b2f5..0f96f49460 100644
--- a/Source/Core/DolphinWX/Frame.cpp
+++ b/Source/Core/DolphinWX/Frame.cpp
@@ -1242,11 +1242,15 @@ 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);
}
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);
}
}
else