Tidy chat catalog error handling
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user