diff --git a/main.qml b/main.qml index ffbe4e54..01e0ee18 100644 --- a/main.qml +++ b/main.qml @@ -1364,6 +1364,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' @@ -2128,7 +2129,7 @@ ApplicationWindow { showProcessingSplash(qsTr("Checking local node status...")); const handler = function(running) { hideProcessingSplash(); - if (running) { + if (running && persistentSettings.askStopLocalNode) { showDaemonIsRunningDialog(closeAccepted); } else { closeAccepted(); diff --git a/pages/settings/SettingsLayout.qml b/pages/settings/SettingsLayout.qml index 5ce192ba..38ce823e 100644 --- a/pages/settings/SettingsLayout.qml +++ b/pages/settings/SettingsLayout.qml @@ -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 {