From 76f4a0fd10e7c725c9b5cf2ec63127b4e773f82e Mon Sep 17 00:00:00 2001 From: tobtoht <thotbot@protonmail.com> Date: Sat, 27 Mar 2021 16:04:03 +0100 Subject: [PATCH] Fix connection status message --- src/mainwindow.cpp | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 8ea79f9..1fe5095 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -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: