mirror of
https://github.com/monero-project/monero-gui
synced 2024-12-18 05:15:54 +01:00
set wallet connection status before querying sync status
This commit is contained in:
parent
3f8e05d7a4
commit
c7232e1fe6
9
main.qml
9
main.qml
@ -288,17 +288,17 @@ ApplicationWindow {
|
|||||||
hideProcessingSplash()
|
hideProcessingSplash()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Daemon connected
|
||||||
|
leftPanel.networkStatus.connected = currentWallet.connected
|
||||||
|
|
||||||
// Check daemon status
|
// Check daemon status
|
||||||
var dCurrentBlock = currentWallet.daemonBlockChainHeight();
|
var dCurrentBlock = currentWallet.daemonBlockChainHeight();
|
||||||
var dTargetBlock = currentWallet.daemonBlockChainTargetHeight();
|
var dTargetBlock = currentWallet.daemonBlockChainTargetHeight();
|
||||||
leftPanel.daemonProgress.updateProgress(dCurrentBlock,dTargetBlock);
|
|
||||||
|
|
||||||
// Daemon connected
|
|
||||||
leftPanel.networkStatus.connected = currentWallet.connected
|
|
||||||
|
|
||||||
// Daemon fully synced
|
// Daemon fully synced
|
||||||
// TODO: implement onDaemonSynced or similar in wallet API and don't start refresh thread before daemon is synced
|
// TODO: implement onDaemonSynced or similar in wallet API and don't start refresh thread before daemon is synced
|
||||||
daemonSynced = (currentWallet.connected != Wallet.ConnectionStatus_Disconnected && dCurrentBlock >= dTargetBlock)
|
daemonSynced = (currentWallet.connected != Wallet.ConnectionStatus_Disconnected && dCurrentBlock >= dTargetBlock)
|
||||||
|
leftPanel.daemonProgress.updateProgress(dCurrentBlock,dTargetBlock);
|
||||||
|
|
||||||
// If wallet isnt connected and no daemon is running - Ask
|
// If wallet isnt connected and no daemon is running - Ask
|
||||||
if(currentWallet.connected === Wallet.ConnectionStatus_Disconnected && !daemonManager.running() && !walletInitialized){
|
if(currentWallet.connected === Wallet.ConnectionStatus_Disconnected && !daemonManager.running() && !walletInitialized){
|
||||||
@ -336,6 +336,7 @@ ApplicationWindow {
|
|||||||
appWindow.showProcessingSplash(qsTr("Waiting for daemon to start..."))
|
appWindow.showProcessingSplash(qsTr("Waiting for daemon to start..."))
|
||||||
daemonManager.start();
|
daemonManager.start();
|
||||||
}
|
}
|
||||||
|
|
||||||
function stopDaemon(){
|
function stopDaemon(){
|
||||||
appWindow.showProcessingSplash(qsTr("Waiting for daemon to stop..."))
|
appWindow.showProcessingSplash(qsTr("Waiting for daemon to stop..."))
|
||||||
daemonManager.stop();
|
daemonManager.stop();
|
||||||
|
Loading…
Reference in New Issue
Block a user