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