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
|
// 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
|
||||||
|
|
Loading…
Reference in New Issue