mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-03-01 21:07:12 -05:00
UI: Better Hide OBS Window description, add first time dialog & tooltip
This commit is contained in:
@@ -1241,6 +1241,9 @@ void OBSBasicSettings::LoadGeneralSettings()
|
||||
config_get_bool(GetGlobalConfig(), "BasicWindow",
|
||||
"HideOBSWindowsFromCapture");
|
||||
ui->hideOBSFromCapture->setChecked(hideWindowFromCapture);
|
||||
|
||||
connect(ui->hideOBSFromCapture, SIGNAL(stateChanged(int)), this,
|
||||
SLOT(HideOBSWindowWarning(int)));
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -4209,6 +4212,24 @@ void OBSBasicSettings::SpeakerLayoutChanged(int idx)
|
||||
}
|
||||
}
|
||||
|
||||
void OBSBasicSettings::HideOBSWindowWarning(int state)
|
||||
{
|
||||
if (loading || state == Qt::Unchecked)
|
||||
return;
|
||||
|
||||
if (config_get_bool(GetGlobalConfig(), "General",
|
||||
"WarnedAboutHideOBSFromCapture"))
|
||||
return;
|
||||
|
||||
OBSMessageBox::information(
|
||||
this, QTStr("Basic.Settings.General.HideOBSWindowsFromCapture"),
|
||||
QTStr("Basic.Settings.General.HideOBSWindowsFromCapture.Message"));
|
||||
|
||||
config_set_bool(GetGlobalConfig(), "General",
|
||||
"WarnedAboutHideOBSFromCapture", true);
|
||||
config_save_safe(GetGlobalConfig(), "tmp", nullptr);
|
||||
}
|
||||
|
||||
/*
|
||||
* resets current bitrate if too large and restricts the number of bitrates
|
||||
* displayed when multichannel OFF
|
||||
|
||||
Reference in New Issue
Block a user