From: gg Date: Wed, 14 Jan 2026 18:00:23 +0000 (-0500) Subject: keep tweaking/refining X-Git-Url: https://git.nutra.tk/v1?a=commitdiff_plain;h=ce55b1724e51944e16db434b48af1681e4fd95d0;p=gamesguru%2Ffeather.git keep tweaking/refining --- diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index d96ea975..fe200e3b 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -614,7 +614,7 @@ void MainWindow::initOffline() { connect(m_updateNetworkInfoAction, &QAction::triggered, this, [this]() { if (!m_wallet) return; - this->setStatusText(tr("Fetching network info...")); + this->setStatusText(tr("Scanning (Fetching network info)...")); m_wallet->updateNetworkStatus(); }); diff --git a/src/utils/nodes.cpp b/src/utils/nodes.cpp index 4b55fb92..6611d76d 100644 --- a/src/utils/nodes.cpp +++ b/src/utils/nodes.cpp @@ -438,6 +438,10 @@ void Nodes::setCustomNodes(const QList &nodes) { void Nodes::onWalletRefreshed() { if (conf()->get(Config::proxy) == Config::Proxy::Tor && conf()->get(Config::torPrivacyLevel).toInt() == Config::allTorExceptInitSync) { + // Privacy switch already triggered this session, don't repeat + if (m_privacySwitchDone) + return; + // Don't reconnect if we're connected to a local node (traffic will not be routed through Tor) if (m_connection.isLocal()) return; @@ -446,9 +450,10 @@ void Nodes::onWalletRefreshed() { if (m_connection.isOnion()) return; - // If want onion node but aren't connected to one, reconnect used to blindly fire. - // We should check if we actually intend to switch. + // If want onion node but aren't connected to one, trigger the switch if (this->useOnionNodes()) { + qInfo() << "Privacy switch: switching from clearnet to onion after initial sync"; + m_privacySwitchDone = true; this->autoConnect(true); } } diff --git a/src/utils/nodes.h b/src/utils/nodes.h index 2cc06b33..1c916998 100644 --- a/src/utils/nodes.h +++ b/src/utils/nodes.h @@ -193,6 +193,7 @@ private: bool m_enableAutoconnect = true; bool m_allowConnection = false; + bool m_privacySwitchDone = false; // Tracks if allTorExceptInitSync switch has fired FeatherNode pickEligibleNode();