mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 04:42:18 +02:00
UI: Hide auto update option for linux
This commit is contained in:
parent
cd931b4c39
commit
e294d546b6
@ -412,9 +412,11 @@ OBSBasicSettings::OBSBasicSettings(QWidget *parent)
|
|||||||
delete ui->monitoringDevice;
|
delete ui->monitoringDevice;
|
||||||
delete ui->monitoringDeviceLabel;
|
delete ui->monitoringDeviceLabel;
|
||||||
delete ui->advAudioGroupBox;
|
delete ui->advAudioGroupBox;
|
||||||
|
delete ui->enableAutoUpdates;
|
||||||
ui->monitoringDevice = nullptr;
|
ui->monitoringDevice = nullptr;
|
||||||
ui->monitoringDeviceLabel = nullptr;
|
ui->monitoringDeviceLabel = nullptr;
|
||||||
ui->advAudioGroupBox = nullptr;
|
ui->advAudioGroupBox = nullptr;
|
||||||
|
ui->enableAutoUpdates = nullptr;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
@ -924,9 +926,11 @@ void OBSBasicSettings::LoadGeneralSettings()
|
|||||||
LoadLanguageList();
|
LoadLanguageList();
|
||||||
LoadThemeList();
|
LoadThemeList();
|
||||||
|
|
||||||
|
#if defined(_WIN32) || defined(__APPLE__)
|
||||||
bool enableAutoUpdates = config_get_bool(GetGlobalConfig(),
|
bool enableAutoUpdates = config_get_bool(GetGlobalConfig(),
|
||||||
"General", "EnableAutoUpdates");
|
"General", "EnableAutoUpdates");
|
||||||
ui->enableAutoUpdates->setChecked(enableAutoUpdates);
|
ui->enableAutoUpdates->setChecked(enableAutoUpdates);
|
||||||
|
#endif
|
||||||
|
|
||||||
bool recordWhenStreaming = config_get_bool(GetGlobalConfig(),
|
bool recordWhenStreaming = config_get_bool(GetGlobalConfig(),
|
||||||
"BasicWindow", "RecordWhenStreaming");
|
"BasicWindow", "RecordWhenStreaming");
|
||||||
@ -2399,10 +2403,12 @@ void OBSBasicSettings::SaveGeneralSettings()
|
|||||||
App()->SetTheme(theme);
|
App()->SetTheme(theme);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(_WIN32) || defined(__APPLE__)
|
||||||
if (WidgetChanged(ui->enableAutoUpdates))
|
if (WidgetChanged(ui->enableAutoUpdates))
|
||||||
config_set_bool(GetGlobalConfig(), "General",
|
config_set_bool(GetGlobalConfig(), "General",
|
||||||
"EnableAutoUpdates",
|
"EnableAutoUpdates",
|
||||||
ui->enableAutoUpdates->isChecked());
|
ui->enableAutoUpdates->isChecked());
|
||||||
|
#endif
|
||||||
if (WidgetChanged(ui->snappingEnabled))
|
if (WidgetChanged(ui->snappingEnabled))
|
||||||
config_set_bool(GetGlobalConfig(), "BasicWindow",
|
config_set_bool(GetGlobalConfig(), "BasicWindow",
|
||||||
"SnappingEnabled",
|
"SnappingEnabled",
|
||||||
|
Loading…
Reference in New Issue
Block a user