From 0ded8dcf25af8fc6be39b4f5323861a772ad10b6 Mon Sep 17 00:00:00 2001 From: selsta Date: Mon, 15 Nov 2021 06:30:55 +0100 Subject: [PATCH] Settings: option to skip stop local node screen --- main.qml | 3 ++- pages/settings/SettingsLayout.qml | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/main.qml b/main.qml index e736487e4a..2c18c952fd 100644 --- a/main.qml +++ b/main.qml @@ -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(); diff --git a/pages/settings/SettingsLayout.qml b/pages/settings/SettingsLayout.qml index 0e54f018ee..6b56e7abb9 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 {