Settings: option to skip stop local node screen

This commit is contained in:
selsta 2021-11-15 06:30:55 +01:00
parent ecf5c501d6
commit 0ded8dcf25
No known key found for this signature in database
GPG key ID: 2EA0A99A8B07AE5E
2 changed files with 8 additions and 1 deletions

View file

@ -1368,6 +1368,7 @@ ApplicationWindow {
}
property bool askDesktopShortcut: isLinux
property bool askStopLocalNode: true
property string language: 'English (US)'
property string language_wallet: 'English'
property string locale: 'en_US'
@ -2123,7 +2124,7 @@ ApplicationWindow {
showProcessingSplash(qsTr("Checking local node status..."));
const handler = function(running) {
hideProcessingSplash();
if (running) {
if (running && persistentSettings.askStopLocalNode) {
showDaemonIsRunningDialog(closeAccepted);
} else {
closeAccepted();

View file

@ -155,6 +155,12 @@ Rectangle {
onMoved: persistentSettings.lockOnUserInActivityInterval = value
}
MoneroComponents.CheckBox {
checked: persistentSettings.askStopLocalNode
onClicked: persistentSettings.askStopLocalNode = !persistentSettings.askStopLocalNode
text: qsTr("Ask to stop local node during program exit") + translationManager.emptyString
}
//! Manage pricing
RowLayout {
MoneroComponents.CheckBox {