From e294d546b6e2f26a5613f70bf07a6dc040b080f2 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Mon, 27 Feb 2017 08:00:13 -0800 Subject: [PATCH] UI: Hide auto update option for linux --- UI/window-basic-settings.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/UI/window-basic-settings.cpp b/UI/window-basic-settings.cpp index 453bcbd23..22fa15aa8 100644 --- a/UI/window-basic-settings.cpp +++ b/UI/window-basic-settings.cpp @@ -412,9 +412,11 @@ OBSBasicSettings::OBSBasicSettings(QWidget *parent) delete ui->monitoringDevice; delete ui->monitoringDeviceLabel; delete ui->advAudioGroupBox; + delete ui->enableAutoUpdates; ui->monitoringDevice = nullptr; ui->monitoringDeviceLabel = nullptr; ui->advAudioGroupBox = nullptr; + ui->enableAutoUpdates = nullptr; #endif #ifdef _WIN32 @@ -924,9 +926,11 @@ void OBSBasicSettings::LoadGeneralSettings() LoadLanguageList(); LoadThemeList(); +#if defined(_WIN32) || defined(__APPLE__) bool enableAutoUpdates = config_get_bool(GetGlobalConfig(), "General", "EnableAutoUpdates"); ui->enableAutoUpdates->setChecked(enableAutoUpdates); +#endif bool recordWhenStreaming = config_get_bool(GetGlobalConfig(), "BasicWindow", "RecordWhenStreaming"); @@ -2399,10 +2403,12 @@ void OBSBasicSettings::SaveGeneralSettings() App()->SetTheme(theme); } +#if defined(_WIN32) || defined(__APPLE__) if (WidgetChanged(ui->enableAutoUpdates)) config_set_bool(GetGlobalConfig(), "General", "EnableAutoUpdates", ui->enableAutoUpdates->isChecked()); +#endif if (WidgetChanged(ui->snappingEnabled)) config_set_bool(GetGlobalConfig(), "BasicWindow", "SnappingEnabled",