mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-03 17:39:54 +00:00
Settings: option to skip stop local node screen
This commit is contained in:
parent
ecf5c501d6
commit
0ded8dcf25
2 changed files with 8 additions and 1 deletions
3
main.qml
3
main.qml
|
@ -1368,6 +1368,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'
|
||||||
|
@ -2123,7 +2124,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();
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue