mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-17 07:11:29 +02:00
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:
@@ -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 {
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user