From 4a7ccd8d821370d5dd34f8f46d9a70669e9f523b Mon Sep 17 00:00:00 2001 From: selsta Date: Sun, 26 Apr 2020 03:16:27 +0200 Subject: [PATCH] SettingsLayout: add check for updates checkbox --- main.qml | 3 ++- pages/settings/SettingsLayout.qml | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/main.qml b/main.qml index c8f5f67a..4d9a5154 100644 --- a/main.qml +++ b/main.qml @@ -1366,6 +1366,7 @@ ApplicationWindow { property int walletMode: 2 property int lockOnUserInActivityInterval: 10 // minutes property bool blackTheme: true + property bool checkForUpdates: true property bool fiatPriceEnabled: false property bool fiatPriceToggle: false @@ -2008,7 +2009,7 @@ ApplicationWindow { id: updatesTimer interval: 3600 * 1000 repeat: true - running: !disableCheckUpdatesFlag + running: !disableCheckUpdatesFlag && persistentSettings.checkForUpdates triggeredOnStart: true onTriggered: checkUpdates() } diff --git a/pages/settings/SettingsLayout.qml b/pages/settings/SettingsLayout.qml index 4515fe99..4d338045 100644 --- a/pages/settings/SettingsLayout.qml +++ b/pages/settings/SettingsLayout.qml @@ -58,6 +58,14 @@ Rectangle { text: qsTr("Custom decorations") + translationManager.emptyString } + MoneroComponents.CheckBox { + id: checkForUpdatesCheckBox + enabled: !disableCheckUpdatesFlag + checked: persistentSettings.checkForUpdates && !disableCheckUpdatesFlag + onClicked: persistentSettings.checkForUpdates = !persistentSettings.checkForUpdates + text: qsTr("Check for updates periodically") + translationManager.emptyString + } + MoneroComponents.CheckBox { id: hideBalanceCheckBox checked: persistentSettings.hideBalance