Backup before removing hiddify references

This commit is contained in:
Hiddify User
2026-01-15 12:28:40 +03:00
parent f54603d129
commit 36d9e31236
231 changed files with 6648 additions and 1832 deletions

View File

@@ -1,6 +1,5 @@
import 'dart:io';
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
import 'package:hiddify/core/localization/translations.dart';
import 'package:hiddify/core/model/constants.dart';
@@ -25,7 +24,7 @@ class SystemTrayNotifier extends _$SystemTrayNotifier with AppLogger {
Future<void> build() async {
if (!PlatformUtils.isDesktop) return;
final activeProxy = await ref.watch(activeProxyNotifierProvider);
final activeProxy = ref.watch(activeProxyNotifierProvider);
final delay = activeProxy.value?.urlTestDelay ?? 0;
final newConnectionStatus = delay > 0 && delay < 65000;
ConnectionStatus connection;
@@ -40,7 +39,7 @@ class SystemTrayNotifier extends _$SystemTrayNotifier with AppLogger {
var tooltip = Constants.appName;
final serviceMode = ref.watch(ConfigOptions.serviceMode);
if (connection == Disconnected()) {
if (connection == const Disconnected()) {
setIcon(connection);
} else if (newConnectionStatus) {
setIcon(const Connected());
@@ -172,7 +171,7 @@ class SystemTrayNotifier extends _$SystemTrayNotifier with AppLogger {
}
}
}
final isDarkMode = false;
const isDarkMode = false;
switch (status) {
case Connected():
return Assets.images.trayIconConnectedPng.path;