diff --git a/src/dialog/DebugInfoDialog.cpp b/src/dialog/DebugInfoDialog.cpp index 00c164b..ae93328 100644 --- a/src/dialog/DebugInfoDialog.cpp +++ b/src/dialog/DebugInfoDialog.cpp @@ -65,6 +65,24 @@ void DebugInfoDialog::updateInfo() { websocketStatus = "Disabled"; } ui->label_websocketStatus->setText(websocketStatus); + + QString proxy = [](){ + int proxy = config()->get(Config::proxy).toInt(); + switch (proxy) { + case 0: + return "None"; + case 1: + return "Tor"; + case 2: + return "i2p"; + case 3: + return "socks5"; + default: + return "invalid"; + } + }(); + + ui->label_proxy->setText(proxy); ui->label_torStatus->setText(torStatus); ui->label_torLevel->setText(config()->get(Config::torPrivacyLevel).toString()); diff --git a/src/dialog/DebugInfoDialog.ui b/src/dialog/DebugInfoDialog.ui index f5e030f..62fe04a 100644 --- a/src/dialog/DebugInfoDialog.ui +++ b/src/dialog/DebugInfoDialog.ui @@ -183,14 +183,14 @@ - + Tor status: - + TextLabel @@ -200,14 +200,14 @@ - + Tor level: - + TextLabel @@ -217,21 +217,21 @@ - + Qt::Horizontal - + Network type: - + TextLabel @@ -241,14 +241,14 @@ - + Seed type: - + TextLabel @@ -258,14 +258,14 @@ - + Device type: - + TextLabel @@ -275,14 +275,14 @@ - + View only: - + TextLabel @@ -292,14 +292,14 @@ - + Primary only: - + TextLabel @@ -309,21 +309,21 @@ - + Qt::Horizontal - + Operating system: - + TextLabel @@ -333,14 +333,14 @@ - + Timestamp: - + TextLabel @@ -350,6 +350,20 @@ + + + + Proxy: + + + + + + + TextLabel + + +