From: gg Date: Sun, 18 Jan 2026 03:56:28 +0000 (-0500) Subject: any better? about the same X-Git-Url: https://git.nutra.tk/v2?a=commitdiff_plain;h=79c59dbace9e4c6755eec4dc082cf36dbea02281;p=gamesguru%2Ffeather.git any better? about the same --- diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 94bb7c79..0d438cc5 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -608,8 +608,8 @@ void MainWindow::initOffline() { connect(m_updateNetworkInfoAction, &QAction::triggered, this, [this]() { if (!m_wallet) return; - this->setStatusText(tr("Scanning...")); - + this->setStatusText(tr("Scanning..."), true); + // FIX: Temporarily connect if we are disconnected/paused if (m_wallet->connectionStatus() == Wallet::ConnectionStatus_Disconnected) { m_nodes->connectToNode(); @@ -1152,7 +1152,11 @@ void MainWindow::onConnectionStatusChanged(int status) statusStr = "Synchronizing"; break; case Wallet::ConnectionStatus_Synchronized: - icon = icons()->icon("status_connected.svg"); + if (conf()->get(Config::proxy).toInt() == Config::Proxy::Tor) { + icon = icons()->icon("status_connected_proxy.svg"); + } else { + icon = icons()->icon("status_connected.svg"); + } statusStr = "Synchronized"; break; default: diff --git a/src/utils/nodes.cpp b/src/utils/nodes.cpp index 74ec0805..5ca8616b 100644 --- a/src/utils/nodes.cpp +++ b/src/utils/nodes.cpp @@ -659,7 +659,9 @@ void Nodes::onConnectionStatusChanged(int status) { qInfo() << "Nodes: Wallet disconnected unexpectedly, triggering auto-connect to new node."; // Fix J: Mark connection as inactive so autoConnect treats it as a failure, not a transient disconnect m_connection.isActive = false; - this->autoConnect(false); + QTimer::singleShot(1000, [this]{ + this->autoConnect(false); + }); } } }