Merge pull request #3734

0ded8dc Settings: option to skip stop local node screen (selsta)
This commit is contained in:
luigi1111 2022-08-10 12:17:06 -05:00
commit b7ab50759a
No known key found for this signature in database
GPG key ID: F4ACA0183641E010
2 changed files with 8 additions and 1 deletions

View file

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

View file

@ -155,6 +155,12 @@ Rectangle {
onMoved: persistentSettings.lockOnUserInActivityInterval = value 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 //! Manage pricing
RowLayout { RowLayout {
MoneroComponents.CheckBox { MoneroComponents.CheckBox {