look ahead
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user