diff --git a/lib/features/connection/widget/connection_wrapper.dart b/lib/features/connection/widget/connection_wrapper.dart index 57015558..62587747 100644 --- a/lib/features/connection/widget/connection_wrapper.dart +++ b/lib/features/connection/widget/connection_wrapper.dart @@ -23,18 +23,19 @@ class _ConnectionWrapperState extends ConsumerState Widget build(BuildContext context) { ref.listen(connectionNotifierProvider, (_, __) {}); - ref.listen(configOptionNotifierProvider, (previous, next) { + ref.listen(configOptionNotifierProvider, (previous, next) async { if (next case AsyncData(value: true)) { final t = ref.read(translationsProvider); - ref.watch(inAppNotificationControllerProvider).showActionToast( - t.connection.reconnectMsg, - actionText: t.connection.reconnect, - callback: () async { - await ref - .read(connectionNotifierProvider.notifier) - .reconnect(await ref.read(activeProfileProvider.future)); - }, - ); + await ref.read(connectionNotifierProvider.notifier).reconnect(await ref.read(activeProfileProvider.future)); + // ref.watch(inAppNotificationControllerProvider).showActionToast( + // t.connection.reconnectMsg, + // actionText: t.connection.reconnect, + // callback: () async { + // await ref + // .read(connectionNotifierProvider.notifier) + // .reconnect(await ref.read(activeProfileProvider.future)); + // }, + // ); } });