mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-19 16:13:55 +02:00
main: verify if currentWallet is loaded before calling it
This commit is contained in:
parent
bddb9b0050
commit
008a38aae2
4
main.qml
4
main.qml
@ -730,15 +730,19 @@ ApplicationWindow {
|
||||
function onDaemonStarted(){
|
||||
console.log("daemon started");
|
||||
daemonStartStopInProgress = 0;
|
||||
if (currentWallet) {
|
||||
currentWallet.connected(true);
|
||||
// resume refresh
|
||||
currentWallet.startRefresh();
|
||||
}
|
||||
// resume simplemode connection timer
|
||||
appWindow.disconnectedEpoch = Utils.epoch();
|
||||
}
|
||||
function onDaemonStopped(){
|
||||
if (currentWallet) {
|
||||
currentWallet.connected(true);
|
||||
}
|
||||
}
|
||||
|
||||
function onDaemonStartFailure(error) {
|
||||
console.log("daemon start failed");
|
||||
|
Loading…
Reference in New Issue
Block a user