diff options
Diffstat (limited to 'launcher/ui/pages')
-rw-r--r-- | launcher/ui/pages/global/LauncherPage.cpp | 8 | ||||
-rw-r--r-- | launcher/ui/pages/global/LauncherPage.ui | 2 |
2 files changed, 9 insertions, 1 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(); 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 @@ <item> <widget class="QCheckBox" name="autoUpdateCheckBox"> <property name="text"> - <string>Check for updates on start?</string> + <string>Check for updates automatically</string> </property> </widget> </item> |