Hush Daemon infos update

This commit is contained in:
DenioD
2019-10-26 21:15:51 +02:00
parent b6e591d659
commit 84c3c45c78
5 changed files with 13 additions and 7 deletions

View File

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

View File

@@ -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);

View File

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

View File

@@ -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();

View File

@@ -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>