Skip to content

Commit 41b97b9

Browse files
committed
gui: replace Direction with Connection Type in peer details
1 parent cb286d6 commit 41b97b9

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/qt/forms/debugwindow.ui

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,14 +1077,17 @@
10771077
</widget>
10781078
</item>
10791079
<item row="1" column="0">
1080-
<widget class="QLabel" name="label_23">
1080+
<widget class="QLabel" name="peerConnectionTypeLabel">
1081+
<property name="toolTip">
1082+
<string>The connection type of this peer.</string>
1083+
</property>
10811084
<property name="text">
1082-
<string>Direction</string>
1085+
<string>Connection Type</string>
10831086
</property>
10841087
</widget>
10851088
</item>
10861089
<item row="1" column="1">
1087-
<widget class="QLabel" name="peerDirection">
1090+
<widget class="QLabel" name="peerConnectionType">
10881091
<property name="cursor">
10891092
<cursorShape>IBeamCursor</cursorShape>
10901093
</property>

src/qt/rpcconsole.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1108,7 +1108,8 @@ void RPCConsole::updateDetailWidget()
11081108
ui->timeoffset->setText(GUIUtil::formatTimeOffset(stats->nodeStats.nTimeOffset));
11091109
ui->peerVersion->setText(QString::number(stats->nodeStats.nVersion));
11101110
ui->peerSubversion->setText(QString::fromStdString(stats->nodeStats.cleanSubVer));
1111-
ui->peerDirection->setText(stats->nodeStats.fInbound ? tr("Inbound") : tr("Outbound"));
1111+
ui->peerConnectionType->setText(GUIUtil::ConnectionTypeToQString(stats->nodeStats.m_conn_type));
1112+
11121113
if (stats->nodeStats.m_permissionFlags == PF_NONE) {
11131114
ui->peerPermissions->setText(tr("N/A"));
11141115
} else {

0 commit comments

Comments
 (0)