aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/pages/global/LauncherPage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'launcher/ui/pages/global/LauncherPage.cpp')
-rw-r--r--launcher/ui/pages/global/LauncherPage.cpp8
1 files changed, 8 insertions, 0 deletions
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();