diff --git a/launcher/ui/pages/global/LauncherPage.cpp b/launcher/ui/pages/global/LauncherPage.cpp index af2e2cd1..51284a8e 100644 --- a/launcher/ui/pages/global/LauncherPage.cpp +++ b/launcher/ui/pages/global/LauncherPage.cpp @@ -261,7 +261,11 @@ void LauncherPage::applySettings() auto s = APPLICATION->settings(); // Updates +#ifdef Q_OS_MAC + APPLICATION->updateChecker()->getSparkleUpdater()->setAutomaticallyChecksForUpdates(ui->autoUpdateCheckBox->isChecked()); +#else s->set("AutoUpdate", ui->autoUpdateCheckBox->isChecked()); +#endif s->set("UpdateChannel", m_currentUpdateChannel); auto original = s->get("IconTheme").toString(); //FIXME: make generic @@ -343,7 +347,11 @@ void LauncherPage::loadSettings() { auto s = APPLICATION->settings(); // Updates +#ifdef Q_OS_MAC + ui->autoUpdateCheckBox->setChecked(APPLICATION->updateChecker()->getSparkleUpdater()->getAutomaticallyChecksForUpdates()); +#else ui->autoUpdateCheckBox->setChecked(s->get("AutoUpdate").toBool()); +#endif m_currentUpdateChannel = s->get("UpdateChannel").toString(); //FIXME: make generic auto theme = s->get("IconTheme").toString(); diff --git a/launcher/ui/pages/global/LauncherPage.ui b/launcher/ui/pages/global/LauncherPage.ui index ae7eb73f..a306a91b 100644 --- a/launcher/ui/pages/global/LauncherPage.ui +++ b/launcher/ui/pages/global/LauncherPage.ui @@ -54,7 +54,7 @@ - Check for updates on start? + Check for updates automatically diff --git a/launcher/updater/macsparkle/SparkleUpdater.mm b/launcher/updater/macsparkle/SparkleUpdater.mm index 0d4119a4..ad7b83c8 100644 --- a/launcher/updater/macsparkle/SparkleUpdater.mm +++ b/launcher/updater/macsparkle/SparkleUpdater.mm @@ -173,7 +173,6 @@ void SparkleUpdater::setAllowedChannel(const QString &channel) NSSet *nsChannels = [NSSet setWithObject:channel.toNSString()]; priv->updaterDelegate.allowedChannels = nsChannels; - qDebug() << channel; APPLICATION->settings()->set("UpdateChannel", channel); }