mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-19 17:49:14 +00:00
UI: Simplify fullscreen toggle code
This commit is contained in:
parent
156e2f3aec
commit
52a3a61a6e
|
@ -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()
|
||||
|
|
|
@ -153,7 +153,6 @@ private:
|
|||
long disableSaving = 1;
|
||||
bool projectChanged = false;
|
||||
bool previewEnabled = true;
|
||||
bool fullscreenInterface = false;
|
||||
|
||||
const char *copyString;
|
||||
const char *copyFiltersString = nullptr;
|
||||
|
|
Loading…
Reference in a new issue