Skip to content

Commit

Permalink
GUI: Do not show the tor v3 onion address in the topbar.
Browse files Browse the repository at this point in the history
v2 addresses were 16 chars long, new v3 addr is 56 chars long and doesn't fit on the topbar.
A future good work will be to create a tor-only information dialog, grouping and presenting the tor related information properly.
  • Loading branch information
furszy committed Aug 10, 2021
1 parent 0b5f406 commit 2cde8e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/qt/pivx/topbar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -608,8 +608,8 @@ void TopBar::updateTorIcon()
ui->pushButtonTor->setChecked(true);
ui->pushButtonTor->setButtonClassStyle("cssClass", "btn-check-tor", true);
}
QString ip_port_q = QString::fromStdString(ip_port);
ui->pushButtonTor->setButtonText(tr("Tor Active: %1").arg(ip_port_q));
ui->pushButtonTor->setButtonText(tr("Tor Active"));
ui->pushButtonTor->setToolTip("Address: " + QString::fromStdString(ip_port));
} else {
if (ui->pushButtonTor->isChecked()) {
ui->pushButtonTor->setChecked(false);
Expand Down

0 comments on commit 2cde8e0

Please sign in to comment.