]> Nutra Git (v2) - gamesguru/feather.git/commitdiff
new icon logic?
authorgg <chown_tee@proton.me>
Mon, 19 Jan 2026 06:08:46 +0000 (01:08 -0500)
committergg <chown_tee@proton.me>
Mon, 19 Jan 2026 06:08:52 +0000 (01:08 -0500)
src/MainWindow.cpp
src/assets.qrc

index a18958877873d5f9631efa15d842c555a4edcdec..761263bf42b5fb09dba0f72d09c5c1ee6899f27e 100644 (file)
@@ -1071,19 +1071,28 @@ void MainWindow::onSyncStatus(quint64 height, quint64 target, bool daemonSync) {
 void MainWindow::onConnectionStatusChanged(int status)
 {
     // Fix B: Override status when paused
+    // Only override if we aren't actively trying to connect/sync (e.g. from a user-initiated "Scan Now")
     if (conf()->get(Config::syncPaused).toBool()) {
-        QIcon icon = icons()->icon("status_offline.svg");
-        QString statusStr = this->getPausedStatusText();
+        bool idle = (status == Wallet::ConnectionStatus_Disconnected || status == Wallet::ConnectionStatus_Synchronized);
+        if (idle) {
+            QIcon icon;
+            if (conf()->get(Config::proxy).toInt() == Config::Proxy::Tor) {
+                icon = icons()->icon("status_idle_proxy.svg");
+            } else {
+                icon = icons()->icon("status_idle.svg");
+            }
+            QString statusStr = this->getPausedStatusText();
 
-        m_statusBtnConnectionStatusIndicator->setIcon(icon);
-        this->setStatusText(statusStr);
+            m_statusBtnConnectionStatusIndicator->setIcon(icon);
+            this->setStatusText(statusStr);
 
-        // Hide the "Net Stats" (D: 0.0 B) label since we aren't downloading
-        m_statusLabelNetStats->hide();
+            // Hide the "Net Stats" (D: 0.0 B) label since we aren't downloading
+            m_statusLabelNetStats->hide();
 
-        // Update tooltip to ensure it doesn't show "Synchronized"
-        this->updateSyncStatusToolTip();
-        return; // STOP EXECUTION HERE
+            // Update tooltip to ensure it doesn't show "Synchronized"
+            this->updateSyncStatusToolTip();
+            return;
+        }
     }
 
     // Note: Wallet does not emit this signal unless status is changed, so calling this function from MainWindow may
index de87ab63a51fecc1008d7c77731eae865aeec098..54d300651f488fd912a542a28a86a145e395c05b 100644 (file)
@@ -79,6 +79,8 @@
     <file>assets/images/status_connected_proxy.svg</file>
     <file>assets/images/status_connected.svg</file>
     <file>assets/images/status_disconnected.svg</file>
+    <file>assets/images/status_idle_proxy.svg</file>
+    <file>assets/images/status_idle.svg</file>
     <file>assets/images/status_lagging.svg</file>
     <file>assets/images/status_offline.svg</file>
     <file>assets/images/status_waiting.svg</file>