Skip to content

Commit

Permalink
Merge pull request #3734
Browse files Browse the repository at this point in the history
0ded8dc Settings: option to skip stop local node screen (selsta)
  • Loading branch information
luigi1111 committed Aug 10, 2022
2 parents 064c145 + 0ded8dc commit b7ab507
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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();
Expand Down
6 changes: 6 additions & 0 deletions pages/settings/SettingsLayout.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit b7ab507

Please sign in to comment.