connection button by proxy status indicator, change connected to connecting when timeout

This commit is contained in:
hiddify-com
2024-08-04 16:46:51 +02:00
parent 7a697acf7d
commit 92bf0fa6cf
4 changed files with 35 additions and 51 deletions

View File

@@ -78,11 +78,11 @@ class IpInfoNotifier extends _$IpInfoNotifier with AppLogger {
}
}
@riverpod
@Riverpod(keepAlive: true)
class ActiveProxyNotifier extends _$ActiveProxyNotifier with AppLogger {
@override
Stream<ProxyItemEntity> build() async* {
ref.disposeDelay(const Duration(seconds: 20));
// ref.disposeDelay(const Duration(seconds: 20));
final serviceRunning = await ref.watch(serviceRunningProvider.future);
if (!serviceRunning) {