Browse Source

show 'press again to quit' message when pressing back on last page in the stack

patch-4
Sander van Grieken 3 years ago
parent
commit
f2857243cb
  1. 16
      electrum/gui/qml/components/main.qml

16
electrum/gui/qml/components/main.qml

@ -205,11 +205,23 @@ ApplicationWindow
stack.pop() stack.pop()
} else { } else {
// destroy most GUI components so that we don't dump so many null reference warnings on exit // destroy most GUI components so that we don't dump so many null reference warnings on exit
app.header.visible = false if (closeMsgTimer.running) {
mainStackView.clear() app.header.visible = false
mainStackView.clear()
} else {
notificationPopup.show('Press Back again to exit')
closeMsgTimer.start()
close.accepted = false
}
} }
} }
Timer {
id: closeMsgTimer
interval: 5000
repeat: false
}
Connections { Connections {
target: Daemon target: Daemon
function onWalletRequiresPassword() { function onWalletRequiresPassword() {

Loading…
Cancel
Save