瀏覽代碼

UI: Fix macOS crash when saving general settings without Sparkle

gxalpha 2 年之前
父節點
當前提交
8ce4a2a154
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1 3
      UI/window-basic-settings.cpp

+ 1 - 3
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();