File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1114,11 +1114,11 @@ void RPCConsole::updateDetailWidget()
1114
1114
peerAddrDetails += " <br />" + tr (" via %1" ).arg (QString::fromStdString (stats->nodeStats .addrLocal ));
1115
1115
ui->peerHeading ->setText (peerAddrDetails);
1116
1116
ui->peerServices ->setText (GUIUtil::formatServicesStr (stats->nodeStats .nServices ));
1117
- ui->peerRelayTxes ->setText (stats->nodeStats .fRelayTxes ? " Yes" : " No" );
1117
+ ui->peerRelayTxes ->setText (stats->nodeStats .fRelayTxes ? tr ( " Yes" ) : tr ( " No" ) );
1118
1118
QString bip152_hb_settings;
1119
- if (stats->nodeStats .m_bip152_highbandwidth_to ) bip152_hb_settings += " To" ;
1120
- if (stats->nodeStats .m_bip152_highbandwidth_from ) bip152_hb_settings += (bip152_hb_settings == " " ? " From" : " / From" );
1121
- if (bip152_hb_settings == " " ) bip152_hb_settings = " No" ;
1119
+ if (stats->nodeStats .m_bip152_highbandwidth_to ) bip152_hb_settings = tr ( " To" ) ;
1120
+ if (stats->nodeStats .m_bip152_highbandwidth_from ) bip152_hb_settings += (bip152_hb_settings. isEmpty () ? tr ( " From" ) : QLatin1Char ( ' / ' ) + tr ( " From" ) );
1121
+ if (bip152_hb_settings. isEmpty ()) bip152_hb_settings = tr ( " No" ) ;
1122
1122
ui->peerHighBandwidth ->setText (bip152_hb_settings);
1123
1123
const int64_t time_now{GetSystemTimeInSeconds ()};
1124
1124
ui->peerConnTime ->setText (GUIUtil::formatDurationStr (time_now - stats->nodeStats .nTimeConnected ));
You can’t perform that action at this time.
0 commit comments