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();
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:
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);
+ });
}
}
}