diff --git a/src/assets/qml/mining.qml b/src/assets/qml/mining.qml index 25c4e891..e4d36857 100644 --- a/src/assets/qml/mining.qml +++ b/src/assets/qml/mining.qml @@ -250,9 +250,9 @@ Rectangle { anchors.leftMargin: 6 anchors.right: parent.right anchors.rightMargin: 8 - anchors.topMargin: 12 + anchors.topMargin: 4 - height: 78 + height: 60 spacing: 16 ColumnLayout { diff --git a/src/dialog/TorInfoDialog.cpp b/src/dialog/TorInfoDialog.cpp index b15c7cea..cc25b2fd 100644 --- a/src/dialog/TorInfoDialog.cpp +++ b/src/dialog/TorInfoDialog.cpp @@ -29,7 +29,14 @@ void TorInfoDialog::onLogsUpdated() { } void TorInfoDialog::onConnectionStatusChanged(bool connected) { - if (!torManager()->isStarted()) { + // wowlet: when we reuse an external/system Tor already listening on the configured SOCKS port we + // never start our own process, so isStarted() is false. Reporting "Not running" then looks broken + // even though traffic IS flowing over that external Tor — surface the real state instead. + if (torManager()->isLocalTor()) { + ui->icon_connectionStatus->setPixmap(QPixmap(connected ? ":/assets/images/status_connected.svg" : ":/assets/images/status_disconnected.svg").scaledToWidth(16, Qt::SmoothTransformation)); + ui->label_testConnectionStatus->setText(connected ? "Connected (using external Tor)" : "External Tor not reachable"); + } + else if (!torManager()->isStarted()) { ui->icon_connectionStatus->setPixmap(QPixmap(":/assets/images/status_offline.svg").scaledToWidth(16, Qt::SmoothTransformation)); ui->label_testConnectionStatus->setText("Not running"); }