diff --git a/lib/features/connection/widget/connection_wrapper.dart b/lib/features/connection/widget/connection_wrapper.dart index 1afc73c6..e5c2aa9e 100644 --- a/lib/features/connection/widget/connection_wrapper.dart +++ b/lib/features/connection/widget/connection_wrapper.dart @@ -1,8 +1,6 @@ import 'package:flutter/material.dart'; -import 'package:hiddify/core/preferences/service_preferences.dart'; import 'package:hiddify/features/connection/notifier/connection_notifier.dart'; import 'package:hiddify/utils/custom_loggers.dart'; -import 'package:hiddify/utils/platform_utils.dart'; import 'package:hooks_riverpod/hooks_riverpod.dart'; class ConnectionWrapper extends StatefulHookConsumerWidget { @@ -27,13 +25,15 @@ class _ConnectionWrapperState extends ConsumerState @override void initState() { super.initState(); - Future.delayed(const Duration(seconds: 2)).then( - (_) async { - if (ref.read(startedByUserProvider) && PlatformUtils.isDesktop) { - loggy.debug("previously started by user, trying to connect"); - return ref.read(connectionNotifierProvider.notifier).mayConnect(); - } - }, - ); + // remove for now... + // + // Future.delayed(const Duration(seconds: 2)).then( + // (_) async { + // if (ref.read(startedByUserProvider) && PlatformUtils.isDesktop) { + // loggy.debug("previously started by user, trying to connect"); + // return ref.read(connectionNotifierProvider.notifier).mayConnect(); + // } + // }, + // ); } }