some updates, rebranding
This commit is contained in:
@@ -51,10 +51,19 @@ void ConnectionLoader::doAutoConnect() {
|
||||
// Check to see if there's an existing wallet
|
||||
if (litelib_wallet_exists(Settings::getChainName().toStdString().c_str())) {
|
||||
main->logger->write(QObject::tr("Using existing wallet."));
|
||||
litelib_initialize_existing(config->dangerous, config->server.toStdString().c_str());
|
||||
char* resp = litelib_initialize_existing(config->dangerous, config->server.toStdString().c_str());
|
||||
QString response = litelib_process_response(resp);
|
||||
|
||||
if (response.toUpper().trimmed() != "OK") {
|
||||
showError(response);
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
main->logger->write(QObject::tr("Create/restore wallet."));
|
||||
litelib_initialize_existing(config->dangerous, config->server.toStdString().c_str());
|
||||
char* resp = litelib_initialize_existing(config->dangerous, config->server.toStdString().c_str());
|
||||
QString response = litelib_process_response(resp);
|
||||
|
||||
|
||||
d->show();
|
||||
}
|
||||
|
||||
|
||||
@@ -336,7 +336,7 @@ void Controller::refreshTransactions() {
|
||||
|
||||
for (auto& it : reply.get<json::array_t>()) {
|
||||
QString address;
|
||||
double total_amount;
|
||||
quint64 total_amount;
|
||||
QList<TransactionItemDetail> items;
|
||||
|
||||
// First, check if there's outgoing metadata
|
||||
@@ -346,11 +346,14 @@ void Controller::refreshTransactions() {
|
||||
QString address = QString::fromStdString(o["address"]);
|
||||
double amount = -1 * o ["value"].get<json::number_float_t>() /100000000; // Sent items are -ve
|
||||
|
||||
// Check for Memos
|
||||
|
||||
QString memo;
|
||||
if (!o["memo"].is_null()) {
|
||||
memo = QString::fromStdString(o["memo"]);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
items.push_back(TransactionItemDetail{address, amount, memo});
|
||||
total_amount += amount;
|
||||
}
|
||||
@@ -380,6 +383,7 @@ void Controller::refreshTransactions() {
|
||||
""
|
||||
});
|
||||
|
||||
|
||||
TransactionItem tx{
|
||||
"Receive",
|
||||
it["datetime"].get<json::number_unsigned_t>(),
|
||||
|
||||
@@ -39,7 +39,7 @@ MainWindow::MainWindow(QWidget *parent) :
|
||||
|
||||
|
||||
ui->setupUi(this);
|
||||
logger = new Logger(this, QDir(QStandardPaths::writableLocation(QStandardPaths::AppDataLocation)).filePath("./komodo/HUSH3/silentdragonlite-debug.log"));
|
||||
logger = new Logger(this, QDir(QStandardPaths::writableLocation(QStandardPaths::AppDataLocation)).filePath("silentdragonlite-cli-wallet.log"));
|
||||
|
||||
// Status Bar
|
||||
setupStatusBar();
|
||||
|
||||
Reference in New Issue
Block a user