From 946cc189c96a476bd82cd1af8a7bcebc11bf1e0b Mon Sep 17 00:00:00 2001 From: gg Date: Sat, 17 Jan 2026 22:41:01 -0500 Subject: [PATCH] simplify my efforts --- src/MainWindow.cpp | 15 ++------------- src/utils/nodes.cpp | 2 +- 2 files changed, 3 insertions(+), 14 deletions(-) diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 1d27f483..94bb7c79 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -868,17 +868,6 @@ void MainWindow::updateStatusToolTip() { toolTip += QString("\nWallet synced: %1").arg(Utils::timeAgo(m_wallet->lastSyncTime())); } - if (m_wallet) { - qint64 nextRefresh = m_wallet->secondsUntilNextRefresh(); - if (nextRefresh > 0) { - toolTip += QString("\nNext sync attempt in: %1s").arg(nextRefresh); - } else if (nextRefresh == 0) { - toolTip += "\nSync attempt in progress..."; - } else if (nextRefresh == -2) { - toolTip += "\nHardware wallet disconnected"; - } - } - m_statusLabelBalance->setToolTip(toolTip); this->updateSyncStatusToolTip(); @@ -1113,8 +1102,8 @@ void MainWindow::onConnectionStatusChanged(int status) qDebug() << "Wallet connection status changed " << Utils::QtEnumToString(static_cast(status)); - if (m_updateNetworkInfoAction) { // Maybe not initialized on first function call - m_updateNetworkInfoAction->setEnabled(status != Wallet::ConnectionStatus_Disconnected && !conf()->get(Config::syncPaused).toBool()); + if (m_updateNetworkInfoAction) { // Maybe not initialized first call + m_updateNetworkInfoAction->setEnabled(true); } // Update connection info in status bar. diff --git a/src/utils/nodes.cpp b/src/utils/nodes.cpp index 26c16647..74ec0805 100644 --- a/src/utils/nodes.cpp +++ b/src/utils/nodes.cpp @@ -277,7 +277,7 @@ void Nodes::autoConnect(bool forceReconnect) { return; } - if (conf()->get(Config::syncPaused).toBool()) { + if (conf()->get(Config::syncPaused).toBool() && !forceReconnect) { return; } -- 2.52.0