mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-19 08:08:38 +02:00
always display restore dates next to restore heights
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
#include "config-feather.h"
|
||||
#include "constants.h"
|
||||
#include "networktype.h"
|
||||
#include "utils/AppData.h"
|
||||
#include "utils/ColorScheme.h"
|
||||
#include "utils/config.h"
|
||||
#include "utils/os/tails.h"
|
||||
@@ -695,6 +696,11 @@ QString formatSyncStatus(quint64 height, quint64 target, bool daemonSync) {
|
||||
return "Synchronized";
|
||||
}
|
||||
|
||||
QString formatRestoreHeight(quint64 height) {
|
||||
const QDateTime restoreDate = appData()->restoreHeights[constants::networkType]->heightToDate(height);
|
||||
return QString("%1 (%2)").arg(QString::number(height), restoreDate.toString("yyyy-MM-dd"));
|
||||
}
|
||||
|
||||
QString getVersion() {
|
||||
QString version = QString("%1").arg(FEATHER_VERSION);
|
||||
#ifdef OFFICIAL_BUILD
|
||||
|
||||
Reference in New Issue
Block a user