mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-06-28 12:29:51 +00:00
Added listener for update trade list in action list on dashboard screen
This commit is contained in:
parent
695fa8e3e5
commit
de70faca73
1 changed files with 5 additions and 1 deletions
|
@ -53,6 +53,9 @@ abstract class ActionListBase with Store {
|
||||||
.watch()
|
.watch()
|
||||||
.listen((_) async => await _updateTransactionsList());
|
.listen((_) async => await _updateTransactionsList());
|
||||||
|
|
||||||
|
_onTradesChanged =
|
||||||
|
tradesSource.watch().listen((_) async => await updateTradeList());
|
||||||
|
|
||||||
updateTradeList();
|
updateTradeList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -145,6 +148,7 @@ abstract class ActionListBase with Store {
|
||||||
StreamSubscription<List<TransactionInfo>> _onTransactionsChangeSubscription;
|
StreamSubscription<List<TransactionInfo>> _onTransactionsChangeSubscription;
|
||||||
StreamSubscription<Account> _onAccountChangeSubscription;
|
StreamSubscription<Account> _onAccountChangeSubscription;
|
||||||
StreamSubscription<BoxEvent> _onTransactionDescriptions;
|
StreamSubscription<BoxEvent> _onTransactionDescriptions;
|
||||||
|
StreamSubscription<BoxEvent> _onTradesChanged;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void dispose() {
|
void dispose() {
|
||||||
|
@ -157,8 +161,8 @@ abstract class ActionListBase with Store {
|
||||||
}
|
}
|
||||||
|
|
||||||
_onTransactionDescriptions?.cancel();
|
_onTransactionDescriptions?.cancel();
|
||||||
|
|
||||||
_onWalletChangeSubscription.cancel();
|
_onWalletChangeSubscription.cancel();
|
||||||
|
_onTradesChanged?.cancel();
|
||||||
super.dispose();
|
super.dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue