mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-02-08 00:53:42 +02:00
Merge pull request #2873
4a7ccd8
SettingsLayout: add check for updates checkbox (selsta)
This commit is contained in:
commit
b6fdb709ba
3
main.qml
3
main.qml
@ -1370,6 +1370,7 @@ ApplicationWindow {
|
|||||||
property int walletMode: 2
|
property int walletMode: 2
|
||||||
property int lockOnUserInActivityInterval: 10 // minutes
|
property int lockOnUserInActivityInterval: 10 // minutes
|
||||||
property bool blackTheme: true
|
property bool blackTheme: true
|
||||||
|
property bool checkForUpdates: true
|
||||||
|
|
||||||
property bool fiatPriceEnabled: false
|
property bool fiatPriceEnabled: false
|
||||||
property bool fiatPriceToggle: false
|
property bool fiatPriceToggle: false
|
||||||
@ -2004,7 +2005,7 @@ ApplicationWindow {
|
|||||||
id: updatesTimer
|
id: updatesTimer
|
||||||
interval: 3600 * 1000
|
interval: 3600 * 1000
|
||||||
repeat: true
|
repeat: true
|
||||||
running: !disableCheckUpdatesFlag
|
running: !disableCheckUpdatesFlag && persistentSettings.checkForUpdates
|
||||||
triggeredOnStart: true
|
triggeredOnStart: true
|
||||||
onTriggered: checkUpdates()
|
onTriggered: checkUpdates()
|
||||||
}
|
}
|
||||||
|
@ -58,6 +58,14 @@ Rectangle {
|
|||||||
text: qsTr("Custom decorations") + translationManager.emptyString
|
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 {
|
MoneroComponents.CheckBox {
|
||||||
id: hideBalanceCheckBox
|
id: hideBalanceCheckBox
|
||||||
checked: persistentSettings.hideBalance
|
checked: persistentSettings.hideBalance
|
||||||
|
Loading…
Reference in New Issue
Block a user