Hide toolbar upon going fullscreen, rendering to main window.
This commit is contained in:
parent
7b9c8da468
commit
b451f561ba
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue