1
0

qml: refresh address list on new transaction by setting dirty flag

This commit is contained in:
Sander van Grieken
2022-10-25 16:45:27 +02:00
parent a2d1d5e288
commit e3b3f04afe
3 changed files with 15 additions and 0 deletions

View File

@@ -171,7 +171,9 @@ class QEWallet(AuthMixin, QObject, QtEventListener):
@qt_event_listener
def on_event_new_transaction(self, wallet, tx):
if wallet == self.wallet:
self._logger.info(f'new transaction {tx.txid()}')
self.add_tx_notification(tx)
self.addressModel.setDirty()
self.historyModel.init_model() # TODO: be less dramatic
@qt_event_listener