Tidy chat catalog error handling

This commit is contained in:
2026-10-21 13:49:18 +01:00
parent a2b02b3810
commit 13d8ddac5d
2 changed files with 6 additions and 3 deletions
@@ -127,8 +127,9 @@ class _ChatSessionsScreenState extends State<ChatSessionsScreen> {
directories = catalog[0];
backends = catalog[1];
} catch (error) {
if (mounted)
if (mounted) {
setState(() => _error = 'Unable to load chat options: $error');
}
return;
}
if (!mounted) return;