aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorselsta <selsta@sent.at>2021-11-15 06:30:55 +0100
committerselsta <selsta@sent.at>2021-11-15 06:31:34 +0100
commit0ded8dcf25af8fc6be39b4f5323861a772ad10b6 (patch)
tree0471e5645681e2aa7c1bf6af69aaa35b5ae735af
parentecf5c501d61bf5f85fb69fd9136cd0235f97f7b8 (diff)
downloadmonzero-gui-0ded8dcf25af8fc6be39b4f5323861a772ad10b6.tar.gz
monzero-gui-0ded8dcf25af8fc6be39b4f5323861a772ad10b6.tar.xz
monzero-gui-0ded8dcf25af8fc6be39b4f5323861a772ad10b6.zip
Settings: option to skip stop local node screen
-rw-r--r--main.qml3
-rw-r--r--pages/settings/SettingsLayout.qml6
2 files changed, 8 insertions, 1 deletions
diff --git a/main.qml b/main.qml
index e736487e..2c18c952 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 0e54f018..6b56e7ab 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 {