mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-17 15:21:30 +02:00
History: update on websocket fiat rates received
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
#include "dialog/TxProofDialog.h"
|
||||
#include "utils/config.h"
|
||||
#include "utils/Icons.h"
|
||||
#include "WebsocketNotifier.h"
|
||||
|
||||
HistoryWidget::HistoryWidget(QSharedPointer<AppContext> ctx, QWidget *parent)
|
||||
: QWidget(parent)
|
||||
@@ -53,6 +54,10 @@ HistoryWidget::HistoryWidget(QSharedPointer<AppContext> ctx, QWidget *parent)
|
||||
ui->syncNotice->setVisible(config()->get(Config::showHistorySyncNotice).toBool());
|
||||
ui->history->setHistoryModel(m_model);
|
||||
|
||||
connect(websocketNotifier(), &WebsocketNotifier::FiatRatesReceived, [this]{
|
||||
ui->history->update();
|
||||
});
|
||||
|
||||
// Load view state
|
||||
QByteArray historyViewState = QByteArray::fromBase64(config()->get(Config::GUI_HistoryViewState).toByteArray());
|
||||
if (!historyViewState.isEmpty()) {
|
||||
|
||||
Reference in New Issue
Block a user