widgets looking ok

This commit is contained in:
davmar
2026-09-10 18:51:35 +02:00
parent ecc5185d3b
commit 55a13ee650
4 changed files with 807 additions and 395 deletions
+11 -1
View File
@@ -206,10 +206,20 @@ class SyncController extends ChangeNotifier {
/// Bank pull-to-refresh / reconnect finished — reconcile with PocketBase.
///
/// Always runs a full sync when logged in so (1) new API txs are pushed and
/// Runs a full sync when idle so (1) new API txs are pushed and
/// (2) any cloud-only history the bank window lacks is pulled back.
///
/// If a sync is already in flight (common at cold start: constructor sync
/// overlaps bank refresh), do **not** queue another full sync — that was
/// causing a back-to-back double pull of 4k+ txs.
void _onBankDataLoaded() {
if (!_auth.isLoggedIn) return;
if (_syncing) {
debugPrint(
'SyncController: bank load finished during sync — skip queued full sync',
);
return;
}
unawaited(syncNow());
}