Hide toolbar upon going fullscreen, rendering to main window.

This commit is contained in:
archshift 2014-08-12 17:47:25 -07:00
parent 7b9c8da468
commit b451f561ba
1 changed files with 4 additions and 0 deletions

View File

@ -1242,11 +1242,15 @@ void CFrame::DoFullscreen(bool enable_fullscreen)
// Save the current mode before going to fullscreen // Save the current mode before going to fullscreen
AuiCurrent = m_Mgr->SavePerspective(); AuiCurrent = m_Mgr->SavePerspective();
m_Mgr->LoadPerspective(AuiFullscreen, true); m_Mgr->LoadPerspective(AuiFullscreen, true);
// Hide toolbar
DoToggleToolbar(false);
} }
else else
{ {
// Restore saved perspective // Restore saved perspective
m_Mgr->LoadPerspective(AuiCurrent, true); m_Mgr->LoadPerspective(AuiCurrent, true);
// Restore toolbar to the status it was at before going fullscreen.
DoToggleToolbar(SConfig::GetInstance().m_InterfaceToolbar);
} }
} }
else else