Browse Source

History: update on websocket fiat rates received

1.0.0
tobtoht 1 month ago
parent
commit
2e7b23898c
Signed by: tobtoht GPG Key ID: 1CADD27F41F45C3C
  1. 5
      src/HistoryWidget.cpp

5
src/HistoryWidget.cpp

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

Loading…
Cancel
Save