mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-23 03:59:38 +00:00
SettingsLayout: add check for updates checkbox
This commit is contained in:
parent
4141832a4d
commit
4a7ccd8d82
2 changed files with 10 additions and 1 deletions
3
main.qml
3
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()
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue