From dfbf36bf04fd4f454050d857a5cd609b15112f75 Mon Sep 17 00:00:00 2001 From: Arseni Date: Tue, 9 Dec 2025 21:16:29 +0300 Subject: [PATCH] Fixes for build --- .gitignore | 3 ++- frontend/pweb/lib/pages/loaders/account.dart | 10 ++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index e663d96..ae95915 100644 --- a/.gitignore +++ b/.gitignore @@ -8,4 +8,5 @@ devtools_options.yaml untranslated.txt generate_protos.sh update_dep.sh -.vscode/ \ No newline at end of file +.vscode/ +GeneratedPluginRegistrant.swift \ No newline at end of file diff --git a/frontend/pweb/lib/pages/loaders/account.dart b/frontend/pweb/lib/pages/loaders/account.dart index a2f1668..14200d9 100644 --- a/frontend/pweb/lib/pages/loaders/account.dart +++ b/frontend/pweb/lib/pages/loaders/account.dart @@ -17,14 +17,12 @@ class AccountLoader extends StatelessWidget { @override Widget build(BuildContext context) => Consumer(builder: (context, provider, _) { - if (provider.account != null) return child; - - if (!provider.restoreAttempted) { - WidgetsBinding.instance.addPostFrameCallback((_) => provider.restoreIfPossible()); - return const Center(child: CircularProgressIndicator()); + if (provider.account != null) { + WidgetsBinding.instance.addPostFrameCallback((_) { + }); + return child; } - if (provider.isLoading) return const Center(child: CircularProgressIndicator()); if (provider.error != null) { WidgetsBinding.instance.addPostFrameCallback((_) { postNotifyUserOfErrorX(