mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-03-12 09:32:33 +00:00
Merge pull request #17 from cake-tech/actions-list-trades-update
Added listener for update trade list in action list on dashboard screen
This commit is contained in:
commit
e01d101dad
1 changed files with 5 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue