Browse Source

Hush Daemon infos update

pull/14/head
DenioD 5 years ago
parent
commit
84c3c45c78
  1. 1
      src/connection.cpp
  2. 6
      src/controller.cpp
  3. 1
      src/controller.h
  4. 2
      src/mainwindow.cpp
  5. 10
      src/mainwindow.ui

1
src/connection.cpp

@ -134,6 +134,7 @@ void ConnectionLoader::showInformation(QString info, QString detail) {
qDebug() << "Showing info " << info << ":" << detail;
connD->status->setText(info);
connD->statusDetail->setText(detail);
}
/**

6
src/controller.cpp

@ -174,6 +174,7 @@ void Controller::getInfoThenRefresh(bool force) {
static int lastBlock = 0;
int curBlock = reply["latest_block_height"].get<json::number_integer_t>();
model->setLatestBlock(curBlock);
ui->blockHeight->setText(QString::number(curBlock));
// Connected, so display checkmark.
QIcon i(":/icons/res/connected.gif");
@ -184,7 +185,12 @@ void Controller::getInfoThenRefresh(bool force) {
//int version = reply["version"].get<json::string_t>();
int version = 1;
Settings::getInstance()->sethushdVersion(version);
ui->Version->setText(QString::fromStdString(reply["version"].get<json::string_t>()));
ui->Vendor->setText(QString::fromStdString(reply["vendor"].get<json::string_t>()));
// See if recurring payments needs anything
Recurring::getInstance()->processPending(main);

1
src/controller.h

@ -40,7 +40,6 @@ public:
Connection* getConnection() { return zrpc->getConnection(); }
void setConnection(Connection* c);
void refresh(bool force = false);
void refreshAddresses();

2
src/mainwindow.cpp

@ -39,7 +39,7 @@ MainWindow::MainWindow(QWidget *parent) :
ui->setupUi(this);
logger = new Logger(this, QDir(QStandardPaths::writableLocation(QStandardPaths::AppDataLocation)).filePath("silentdragonlite-debug.log"));
logger = new Logger(this, QDir(QStandardPaths::writableLocation(QStandardPaths::AppDataLocation)).filePath("./komodo/HUSH3/silentdragonlite-debug.log"));
// Status Bar
setupStatusBar();

10
src/mainwindow.ui

@ -953,21 +953,21 @@
</spacer>
</item>
<item row="2" column="2">
<widget class="QLabel" name="version">
<widget class="QLabel" name="Vendor">
<property name="text">
<string>Loading...</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="heightLabel">
<widget class="QLabel" name="Vendor">
<property name="text">
<string>Blockheight</string>
<string>blockHeight</string>
</property>
</widget>
</item>
<item row="3" column="2">
<widget class="QLabel" name="Vendor">
<widget class="QLabel" name="Version">
<property name="text">
<string>Loading...</string>
</property>
@ -976,7 +976,7 @@
<item row="3" column="0">
<widget class="QLabel" name="label_12">
<property name="text">
<string>Version hushd light</string>
<string>Version hushlightd</string>
</property>
</widget>
</item>

Loading…
Cancel
Save