UI: Simplify fullscreen toggle code

This commit is contained in:
Clayton Groeneveld
2019-10-21 15:17:26 -05:00
parent 156e2f3aec
commit 52a3a61a6e
2 changed files with 1 additions and 7 deletions
+1 -6
View File
@@ -1758,9 +1758,6 @@ void OBSBasic::OBSInit()
SystemTray(true);
#endif
if (windowState().testFlag(Qt::WindowFullScreen))
fullscreenInterface = true;
bool has_last_version = config_has_user_value(App()->GlobalConfig(),
"General", "LastVersion");
bool first_run =
@@ -6612,12 +6609,10 @@ void OBSBasic::OpenSavedProjectors()
void OBSBasic::on_actionFullscreenInterface_triggered()
{
if (!fullscreenInterface)
if (!isFullScreen())
showFullScreen();
else
showNormal();
fullscreenInterface = !fullscreenInterface;
}
void OBSBasic::UpdateTitleBar()