mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-02-28 04:19:05 -05:00
UI: Add option to show stats on startup to general
This commit is contained in:
@@ -291,6 +291,7 @@ OBSBasicSettings::OBSBasicSettings(QWidget *parent)
|
||||
HookWidget(ui->language, COMBO_CHANGED, GENERAL_CHANGED);
|
||||
HookWidget(ui->theme, COMBO_CHANGED, GENERAL_CHANGED);
|
||||
HookWidget(ui->enableAutoUpdates, CHECK_CHANGED, GENERAL_CHANGED);
|
||||
HookWidget(ui->openStatsOnStartup, CHECK_CHANGED, GENERAL_CHANGED);
|
||||
HookWidget(ui->warnBeforeStreamStart,CHECK_CHANGED, GENERAL_CHANGED);
|
||||
HookWidget(ui->warnBeforeStreamStop, CHECK_CHANGED, GENERAL_CHANGED);
|
||||
HookWidget(ui->hideProjectorCursor, CHECK_CHANGED, GENERAL_CHANGED);
|
||||
@@ -957,6 +958,9 @@ void OBSBasicSettings::LoadGeneralSettings()
|
||||
"General", "EnableAutoUpdates");
|
||||
ui->enableAutoUpdates->setChecked(enableAutoUpdates);
|
||||
#endif
|
||||
bool openStatsOnStartup = config_get_bool(main->Config(),
|
||||
"General", "OpenStatsOnStartup");
|
||||
ui->openStatsOnStartup->setChecked(openStatsOnStartup);
|
||||
|
||||
bool recordWhenStreaming = config_get_bool(GetGlobalConfig(),
|
||||
"BasicWindow", "RecordWhenStreaming");
|
||||
@@ -2438,6 +2442,10 @@ void OBSBasicSettings::SaveGeneralSettings()
|
||||
"EnableAutoUpdates",
|
||||
ui->enableAutoUpdates->isChecked());
|
||||
#endif
|
||||
if (WidgetChanged(ui->openStatsOnStartup))
|
||||
config_set_bool(main->Config(), "General",
|
||||
"OpenStatsOnStartup",
|
||||
ui->openStatsOnStartup->isChecked());
|
||||
if (WidgetChanged(ui->snappingEnabled))
|
||||
config_set_bool(GetGlobalConfig(), "BasicWindow",
|
||||
"SnappingEnabled",
|
||||
|
||||
Reference in New Issue
Block a user