main: fix a potential warning

This commit is contained in:
selsta 2022-10-29 04:55:01 +02:00
parent aef4a982dc
commit c390afd258
No known key found for this signature in database
GPG Key ID: 2EA0A99A8B07AE5E
1 changed files with 2 additions and 1 deletions

View File

@ -694,7 +694,8 @@ ApplicationWindow {
// Daemon connected
leftPanel.networkStatus.connected = currentWallet ? currentWallet.connected() : Wallet.ConnectionStatus_Disconnected
currentWallet.refreshHeightAsync();
if (currentWallet)
currentWallet.refreshHeightAsync();
}
function startDaemon(flags){