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 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();

View File

@ -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 {