mirror of
https://github.com/feather-wallet/feather.git
synced 2025-02-02 03:06:34 +00:00
Fix connection status message
This commit is contained in:
parent
d1bb4c143f
commit
76f4a0fd10
1 changed files with 9 additions and 6 deletions
|
@ -881,13 +881,16 @@ void MainWindow::showConnectionStatusDialog() {
|
|||
case Wallet::ConnectionStatus_WrongVersion:
|
||||
statusMsg = "Wallet is connected to incompatible daemon.";
|
||||
break;
|
||||
case Wallet::ConnectionStatus_Synchronizing: {
|
||||
auto node = m_ctx->nodes->connection();
|
||||
statusMsg = QString("Wallet is connected to %1").arg(node.full);
|
||||
}
|
||||
case Wallet::ConnectionStatus_Synchronizing:
|
||||
case Wallet::ConnectionStatus_Synchronized: {
|
||||
if (synchronized)
|
||||
statusMsg += " and synchronized";
|
||||
auto node = m_ctx->nodes->connection();
|
||||
statusMsg = QString("Wallet is connected to %1 ").arg(node.full);
|
||||
|
||||
if (synchronized) {
|
||||
statusMsg += "and synchronized";
|
||||
} else {
|
||||
statusMsg += "and synchronizing";
|
||||
}
|
||||
break;
|
||||
}
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue