mirror of
https://github.com/feather-wallet/feather.git
synced 2024-11-16 17:27:38 +00:00
History: update on websocket fiat rates received
This commit is contained in:
parent
6ccc988420
commit
2e7b23898c
1 changed files with 5 additions and 0 deletions
|
@ -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…
Reference in a new issue