wowlet: clearer Tor status for external Tor + lift mining stats into the dark bar

- TorInfoDialog: when wowlet reuses an already-running external/system Tor (isLocalTor), show 'Connected (using external Tor)' instead of the misleading 'Not running'.

- mining.qml: raise + tighten the Block Height / Sync Progress block so it sits in the dark header bar instead of clipping the scene art (first pass, may need a small tweak).
This commit is contained in:
jwinterm
2026-06-20 12:09:43 -04:00
parent 83a4582266
commit 3d1424869d
2 changed files with 10 additions and 3 deletions
+2 -2
View File
@@ -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 {
+8 -1
View File
@@ -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");
}