mirror of
https://github.com/feather-wallet/feather.git
synced 2025-03-12 09:37:47 +00:00
Merge pull request 'Fix connection status message' (#351) from tobtoht/feather:fix_connect into master
Reviewed-on: https://git.featherwallet.org/feather/feather/pulls/351
This commit is contained in:
commit
08bb59e9e1
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