mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
Added listener for update trade list in action list on dashboard screen
This commit is contained in:
@@ -53,6 +53,9 @@ abstract class ActionListBase with Store {
|
||||
.watch()
|
||||
.listen((_) async => await _updateTransactionsList());
|
||||
|
||||
_onTradesChanged =
|
||||
tradesSource.watch().listen((_) async => await updateTradeList());
|
||||
|
||||
updateTradeList();
|
||||
}
|
||||
|
||||
@@ -145,6 +148,7 @@ abstract class ActionListBase with Store {
|
||||
StreamSubscription<List<TransactionInfo>> _onTransactionsChangeSubscription;
|
||||
StreamSubscription<Account> _onAccountChangeSubscription;
|
||||
StreamSubscription<BoxEvent> _onTransactionDescriptions;
|
||||
StreamSubscription<BoxEvent> _onTradesChanged;
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
@@ -157,8 +161,8 @@ abstract class ActionListBase with Store {
|
||||
}
|
||||
|
||||
_onTransactionDescriptions?.cancel();
|
||||
|
||||
_onWalletChangeSubscription.cancel();
|
||||
_onTradesChanged?.cancel();
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user