push feature stable
This commit is contained in:
1 parent
dc5e9bbd86
commit
36d85f9373
49 files changed
+5473
-673
No files matched your search
+10
-3
@@ -55,9 +55,16 @@ Future<void> handleSwitchProfile(
|
||||
);
|
||||
|
||||
if (shouldSwitch == true) {
|
||||
await ref
|
||||
.read(profileRepositoryProvider.notifier)
|
||||
.switchProfile(profile.id);
|
||||
try {
|
||||
await ref
|
||||
.read(profileRepositoryProvider.notifier)
|
||||
.switchProfile(profile.id);
|
||||
} catch (error) {
|
||||
if (context.mounted) {
|
||||
ui_helper.showErrorMessage(context, 'Could not switch profile: $error');
|
||||
}
|
||||
return;
|
||||
}
|
||||
await exitApp(ref.container);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user