Skip to content

Commit

Permalink
TX List: add additional refreshes when updating transactions. fixes #379
Browse files Browse the repository at this point in the history


This behavior needs to be optimized once #401 is done!
  • Loading branch information
dreautall committed Jun 16, 2024
1 parent 8d174ef commit 8f64fa2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/pages/home/transactions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,9 @@ class _HomeTransactionsState extends State<HomeTransactions>
if (ok ?? false) {
_rowsWithDate = <int>[];
_lastDate = null;
if (context.mounted) {
context.read<FireflyService>().transStock!.clear();
}
_pagingController.refresh();
}
},
Expand Down Expand Up @@ -650,6 +653,9 @@ class _HomeTransactionsState extends State<HomeTransactions>
if (refresh ?? false == true) {
_rowsWithDate = <int>[];
_lastDate = null;
if (context.mounted) {
context.read<FireflyService>().transStock!.clear();
}
_pagingController.refresh();
}
},
Expand Down

0 comments on commit 8f64fa2

Please sign in to comment.