Update lib/screens/scan_tab.dart

better error message on failed collection loading

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Lukas Müllner 2026-02-24 20:14:10 +01:00 committed by GitHub
parent ca11df0152
commit ae39f2cbaf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -43,6 +43,11 @@ class ScanTabState extends State<ScanTab> {
} catch (e) {
if (!mounted) return;
setState(() => _loadingCollections = false);
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(
content: Text('Failed to load collections: $e'),
),
);
}
}