UI: Add fullscreen UI option to view menu

(Edit by Jim: Removed "Fullscreen Preview" because that's already sort
of served by the normal fullscreen projector option via the preview
context menu)

Closes jp9000/obs-studio#846
This commit is contained in:
cg2121 2017-03-04 08:21:43 -06:00 • committed by jp9000
commit b8d907f399
4 changed files with 27 additions and 0 deletions

View file

@ -1431,6 +1431,9 @@ void OBSBasic::OBSInit()
OpenSavedProjectors();
if (windowState().testFlag(Qt::WindowFullScreen))
fullscreenInterface = true;
bool has_last_version = config_has_user_value(App()->GlobalConfig(),
"General", "LastVersion");
bool first_run = config_get_bool(App()->GlobalConfig(), "General",
@ -5177,6 +5180,16 @@ void OBSBasic::RemoveSavedProjectors(int monitor)
projectorArray.at((size_t)monitor) = "";
}
void OBSBasic::on_actionFullscreenInterface_triggered()
{
if (!fullscreenInterface)
showFullScreen();
else
showNormal();
fullscreenInterface = !fullscreenInterface;
}
void OBSBasic::UpdateTitleBar()
{
stringstream name;