mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-28 18:56:32 +02:00
Merge pull request #3788
008a38a
main: verify if currentWallet is loaded before calling it (rating89us)
This commit is contained in:
commit
56df20ba27
12
main.qml
12
main.qml
@ -730,14 +730,18 @@ ApplicationWindow {
|
|||||||
function onDaemonStarted(){
|
function onDaemonStarted(){
|
||||||
console.log("daemon started");
|
console.log("daemon started");
|
||||||
daemonStartStopInProgress = 0;
|
daemonStartStopInProgress = 0;
|
||||||
currentWallet.connected(true);
|
if (currentWallet) {
|
||||||
// resume refresh
|
currentWallet.connected(true);
|
||||||
currentWallet.startRefresh();
|
// resume refresh
|
||||||
|
currentWallet.startRefresh();
|
||||||
|
}
|
||||||
// resume simplemode connection timer
|
// resume simplemode connection timer
|
||||||
appWindow.disconnectedEpoch = Utils.epoch();
|
appWindow.disconnectedEpoch = Utils.epoch();
|
||||||
}
|
}
|
||||||
function onDaemonStopped(){
|
function onDaemonStopped(){
|
||||||
currentWallet.connected(true);
|
if (currentWallet) {
|
||||||
|
currentWallet.connected(true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function onDaemonStartFailure(error) {
|
function onDaemonStartFailure(error) {
|
||||||
|
Loading…
Reference in New Issue
Block a user