look ahead

This commit is contained in:
davmar
2026-09-10 00:35:54 +02:00
parent 91d6dc9e54
commit 5b22fc8694
20 changed files with 2942 additions and 799 deletions
+5 -2
View File
@@ -158,7 +158,10 @@ class BankController extends ChangeNotifier {
/// Union cloud txs into the local bank cache without dropping either side.
///
/// Rows land in the API cache; CSV imports that match are deduped away.
Future<void> applySyncedTransactions(List<BankTransaction> fromCloud) async {
Future<void> applySyncedTransactions(
List<BankTransaction> fromCloud, {
bool notify = true,
}) async {
if (fromCloud.isEmpty) return;
_remoteTransactions = mergeTransactions(_remoteTransactions, fromCloud);
@@ -181,7 +184,7 @@ class BankController extends ChangeNotifier {
await _persistCache();
await _persistImported();
notifyListeners();
if (notify) notifyListeners();
}
/// Load status; if linked, also load balance + transactions.