Browse Source

Render notarized height in status bar

pull/45/head
Jonathan "Duke" Leto 5 years ago
parent
commit
377374a2b2
  1. 2
      src/mainwindow.cpp
  2. 6
      src/mainwindow.ui
  3. 7
      src/rpc.cpp

2
src/mainwindow.cpp

@ -1110,7 +1110,7 @@ void MainWindow::setupBalancesTab() {
}
void MainWindow::setupZcashdTab() {
ui->zcashdlogo->setBasePixmap(QPixmap(":/img/res/zcashdlogo.gif"));
ui->hushlogo->setBasePixmap(QPixmap(":/img/res/zcashdlogo.gif"));
}
void MainWindow::setupTransactionsTab() {

6
src/mainwindow.ui

@ -11,7 +11,7 @@
</rect>
</property>
<property name="windowTitle">
<string>ZecWallet</string>
<string>SilentDragon</string>
</property>
<property name="windowIcon">
<iconset resource="../application.qrc">
@ -875,13 +875,13 @@
</widget>
<widget class="QWidget" name="tab_5">
<attribute name="title">
<string>zcashd</string>
<string>hushd</string>
</attribute>
<layout class="QVBoxLayout" name="verticalLayout_7">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_14">
<item>
<widget class="FilledIconLabel" name="zcashdlogo">
<widget class="FilledIconLabel" name="hushlogo">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>

7
src/rpc.cpp

@ -550,7 +550,8 @@ void RPC::getInfoThenRefresh(bool force) {
static int lastBlock = 0;
int curBlock = reply["blocks"].get<json::number_integer_t>();
int version = reply["version"].get<json::number_integer_t>();
int version = reply["version"].get<json::number_integer_t>();
int notarized = reply["notarized"].get<json::number_integer_t>();
Settings::getInstance()->setZcashdVersion(version);
if ( force || (curBlock != lastBlock) ) {
@ -636,7 +637,9 @@ void RPC::getInfoThenRefresh(bool force) {
(Settings::getInstance()->isTestnet() ? QObject::tr("testnet:") : "") %
QString::number(blockNumber) %
(isSyncing ? ("/" % QString::number(progress*100, 'f', 2) % "%") : QString()) %
") HUSH=$" % QString::number( (double) Settings::getInstance()->getZECPrice() );
") " %
" Notarized: " % QString::number(notarized) %
" HUSH/USD=$" % QString::number( (double) Settings::getInstance()->getZECPrice() );
main->statusLabel->setText(statusText);
auto zecPrice = Settings::getUSDFormat(1);

Loading…
Cancel
Save