Skip to content

Commit 73a91c6

Browse files
jonatackjarolrod
authored andcommitted
gui: rename "Peer Id" to "Peer" in tab column and details area
to allow resizing the column more tightly
1 parent 2448457 commit 73a91c6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/qt/peertablemodel.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public Q_SLOTS:
7474

7575
private:
7676
interfaces::Node& m_node;
77-
const QStringList columns{tr("Peer Id"), tr("Address"), tr("Type"), tr("Network"), tr("Ping"), tr("Sent"), tr("Received"), tr("User Agent")};
77+
const QStringList columns{tr("Peer"), tr("Address"), tr("Type"), tr("Network"), tr("Ping"), tr("Sent"), tr("Received"), tr("User Agent")};
7878
std::unique_ptr<PeerTablePriv> priv;
7979
QTimer *timer;
8080
};

src/qt/rpcconsole.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1023,7 +1023,7 @@ void RPCConsole::updateDetailWidget()
10231023
const auto stats = selected_peers.first().data(PeerTableModel::StatsRole).value<CNodeCombinedStats*>();
10241024
// update the detail ui with latest node information
10251025
QString peerAddrDetails(QString::fromStdString(stats->nodeStats.addrName) + " ");
1026-
peerAddrDetails += tr("(peer id: %1)").arg(QString::number(stats->nodeStats.nodeid));
1026+
peerAddrDetails += tr("(peer: %1)").arg(QString::number(stats->nodeStats.nodeid));
10271027
if (!stats->nodeStats.addrLocal.empty())
10281028
peerAddrDetails += "<br />" + tr("via %1").arg(QString::fromStdString(stats->nodeStats.addrLocal));
10291029
ui->peerHeading->setText(peerAddrDetails);

0 commit comments

Comments
 (0)