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
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