Browse Source

Render local services in hushd tab

pull/87/head
Duke Leto 5 years ago
parent
commit
792945ae8f
  1. 22
      src/mainwindow.ui
  2. 2
      src/rpc.cpp

22
src/mainwindow.ui

@ -1223,6 +1223,28 @@
</widget>
</item>
<item row="17" column="0">
<widget class="QLabel" name="localserviceslabel">
<property name="text">
<string>Local Services</string>
</property>
</widget>
</item>
<item row="17" column="2">
<widget class="QLabel" name="localservices">
<property name="text">
<string>Loading...</string>
</property>
</widget>
</item>
<item row="17" column="1">
<widget class="QLabel" name="localservicesspacer">
<property name="text">
<string>|</string>
</property>
</widget>
</item>
<item row="3" column="2">
<widget class="QLabel" name="solrate">
<property name="text">

2
src/rpc.cpp

@ -654,8 +654,10 @@ void RPC::getInfoThenRefresh(bool force) {
conn->doRPCIgnoreError(payload, [=](const json& reply) {
QString clientname = QString::fromStdString( reply["subversion"].get<json::string_t>() );
QString localservices = QString::fromStdString( reply["localservices"].get<json::string_t>() );
ui->clientname->setText(clientname);
ui->localservices->setText(localservices);
});
// Call to see if the blockchain is syncing.

Loading…
Cancel
Save