From f5fe91eb5c35a05bc3880296d08a0010415eb42c Mon Sep 17 00:00:00 2001 From: tobtoht Date: Thu, 3 Mar 2022 23:38:01 +0100 Subject: [PATCH] DebugInfo: add tor privacy level --- src/dialog/DebugInfoDialog.cpp | 6 ++-- src/dialog/DebugInfoDialog.ui | 56 +++++++++++++++++++++------------- 2 files changed, 39 insertions(+), 23 deletions(-) diff --git a/src/dialog/DebugInfoDialog.cpp b/src/dialog/DebugInfoDialog.cpp index 2843ccbe..bdc957cb 100644 --- a/src/dialog/DebugInfoDialog.cpp +++ b/src/dialog/DebugInfoDialog.cpp @@ -57,8 +57,9 @@ void DebugInfoDialog::updateInfo() { auto node = m_ctx->nodes->connection(); ui->label_remoteNode->setText(node.toAddress()); ui->label_walletStatus->setText(this->statusToString(m_ctx->wallet->connectionStatus())); - ui->label_torStatus->setText(torStatus); ui->label_websocketStatus->setText(Utils::QtEnumToString(websocketNotifier()->websocketClient.webSocket.state()).remove("State")); + ui->label_torStatus->setText(torStatus); + ui->label_torLevel->setText(config()->get(Config::torPrivacyLevel).toString()); QString seedType = [this](){ if (m_ctx->wallet->isHwBacked()) @@ -130,8 +131,9 @@ void DebugInfoDialog::copyToClipboad() { text += QString("Remote node: %1 \n").arg(ui->label_remoteNode->text()); text += QString("Wallet status: %1 \n").arg(ui->label_walletStatus->text()); - text += QString("Tor status: %1 \n").arg(ui->label_torStatus->text()); text += QString("Websocket status: %1 \n").arg(ui->label_websocketStatus->text()); + text += QString("Tor status: %1 \n").arg(ui->label_torStatus->text()); + text += QString("Tor level: %1 \n").arg(ui->label_torLevel->text()); text += QString("Network type: %1 \n").arg(ui->label_netType->text()); text += QString("Seed type: %1 \n").arg(ui->label_seedType->text()); diff --git a/src/dialog/DebugInfoDialog.ui b/src/dialog/DebugInfoDialog.ui index dc4c83fc..f4ee55e5 100644 --- a/src/dialog/DebugInfoDialog.ui +++ b/src/dialog/DebugInfoDialog.ui @@ -167,14 +167,14 @@ - + - Tor status: + Websocket status: - + TextLabel @@ -184,14 +184,14 @@ - + - Websocket status: + Tor status: - + TextLabel @@ -200,21 +200,35 @@ + + + + Tor level: + + + + + + TextLabel + + + + Qt::Horizontal - + Network type: - + TextLabel @@ -224,14 +238,14 @@ - + Seed type: - + TextLabel @@ -241,14 +255,14 @@ - + Device type: - + TextLabel @@ -258,14 +272,14 @@ - + View only: - + TextLabel @@ -275,14 +289,14 @@ - + Primary only: - + TextLabel @@ -292,21 +306,21 @@ - + Qt::Horizontal - + Operating system: - + TextLabel @@ -316,14 +330,14 @@ - + Timestamp: - + TextLabel -- 2.52.0