From 8ce4a2a1543a9a879bebde558b575280a2bcb5ea Mon Sep 17 00:00:00 2001 From: gxalpha Date: Fri, 17 Mar 2023 18:54:02 +0100 Subject: [PATCH] UI: Fix macOS crash when saving general settings without Sparkle --- UI/window-basic-settings.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/UI/window-basic-settings.cpp b/UI/window-basic-settings.cpp index 5a59d6505..2a5ac8d88 100644 --- a/UI/window-basic-settings.cpp +++ b/UI/window-basic-settings.cpp @@ -3140,13 +3140,11 @@ void OBSBasicSettings::SaveGeneralSettings() QT_TO_UTF8(themeData)); } -#if defined(_WIN32) || defined(__APPLE__) +#if defined(_WIN32) || defined(ENABLE_SPARKLE_UPDATER) if (WidgetChanged(ui->enableAutoUpdates)) config_set_bool(GetGlobalConfig(), "General", "EnableAutoUpdates", ui->enableAutoUpdates->isChecked()); -#endif -#if defined(_WIN32) || defined(ENABLE_SPARKLE_UPDATER) int branchIdx = ui->updateChannelBox->currentIndex(); QString branchName = ui->updateChannelBox->itemData(branchIdx).toString();