From ab04bb1f553a77ca0361ef0818f889790cab0dcb Mon Sep 17 00:00:00 2001 From: gxalpha Date: Sat, 11 Mar 2023 21:18:42 +0100 Subject: [PATCH] UI: Don't show Update section in settings when built without Sparkle --- UI/window-basic-settings.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/UI/window-basic-settings.cpp b/UI/window-basic-settings.cpp index 82e63f81c..5a59d6505 100644 --- a/UI/window-basic-settings.cpp +++ b/UI/window-basic-settings.cpp @@ -577,7 +577,7 @@ OBSBasicSettings::OBSBasicSettings(QWidget *parent) ui->advOutFFVBitrate->setSuffix(" Kbps"); ui->advOutFFABitrate->setSuffix(" Kbps"); -#if !defined(_WIN32) && !defined(__APPLE__) +#if !defined(_WIN32) && !defined(ENABLE_SPARKLE_UPDATER) delete ui->updateSettingsGroupBox; ui->updateSettingsGroupBox = nullptr; ui->updateChannelLabel = nullptr; @@ -1301,14 +1301,12 @@ void OBSBasicSettings::LoadGeneralSettings() LoadLanguageList(); LoadThemeList(); -#if defined(_WIN32) || defined(__APPLE__) +#if defined(_WIN32) || defined(ENABLE_SPARKLE_UPDATER) bool enableAutoUpdates = config_get_bool(GetGlobalConfig(), "General", "EnableAutoUpdates"); ui->enableAutoUpdates->setChecked(enableAutoUpdates); -#if defined(_WIN32) || defined(ENABLE_SPARKLE_UPDATER) LoadBranchesList(); -#endif #endif bool openStatsOnStartup = config_get_bool(main->Config(), "General", "OpenStatsOnStartup");