feat: 修改测试节点问题
Build Android APK / 编译 libcore.aar (push) Has been cancelled
Build Android APK / 编译 Android APK (release) (push) Has been cancelled
Build Android APK / 创建 GitHub Release (push) Has been cancelled
Build Multi-Platform / 编译 libcore (iOS/tvOS) (push) Has been cancelled
Build Multi-Platform / 编译 libcore (Android) (push) Has been cancelled
Build Multi-Platform / 编译 libcore (Windows) (push) Has been cancelled
Build Multi-Platform / 编译 libcore (macOS) (push) Has been cancelled
Build Multi-Platform / 编译 libcore (Linux) (push) Has been cancelled
Build Multi-Platform / 构建 Android APK (push) Has been cancelled
Build Multi-Platform / 构建 Windows (push) Has been cancelled
Build Multi-Platform / 构建 macOS (push) Has been cancelled
Build Multi-Platform / 构建 Linux (push) Has been cancelled
Build Multi-Platform / 构建 iOS (push) Has been cancelled
Build Multi-Platform / 创建 Release (push) Has been cancelled
Build Windows / build (push) Has been cancelled
Build Windows / 编译 libcore (Windows) (push) Has been cancelled
Build Android APK / 编译 libcore.aar (push) Has been cancelled
Build Android APK / 编译 Android APK (release) (push) Has been cancelled
Build Android APK / 创建 GitHub Release (push) Has been cancelled
Build Multi-Platform / 编译 libcore (iOS/tvOS) (push) Has been cancelled
Build Multi-Platform / 编译 libcore (Android) (push) Has been cancelled
Build Multi-Platform / 编译 libcore (Windows) (push) Has been cancelled
Build Multi-Platform / 编译 libcore (macOS) (push) Has been cancelled
Build Multi-Platform / 编译 libcore (Linux) (push) Has been cancelled
Build Multi-Platform / 构建 Android APK (push) Has been cancelled
Build Multi-Platform / 构建 Windows (push) Has been cancelled
Build Multi-Platform / 构建 macOS (push) Has been cancelled
Build Multi-Platform / 构建 Linux (push) Has been cancelled
Build Multi-Platform / 构建 iOS (push) Has been cancelled
Build Multi-Platform / 创建 Release (push) Has been cancelled
Build Windows / build (push) Has been cancelled
Build Windows / 编译 libcore (Windows) (push) Has been cancelled
This commit is contained in:
@@ -203,7 +203,7 @@ class KRHomeController extends GetxController with WidgetsBindingObserver {
|
||||
KRLogUtil.kr_i('开始执行闪连自动连接', tag: 'QuickConnect');
|
||||
|
||||
// 防止重复操作
|
||||
if (KRSingBoxImp.instance.kr_status == SingboxStarted) {
|
||||
if (KRSingBoxImp.instance.kr_status.value == SingboxStarted()) {
|
||||
KRLogUtil.kr_w('连接操作正在进行中,跳过自动连接', tag: 'QuickConnect');
|
||||
return;
|
||||
}
|
||||
@@ -439,9 +439,6 @@ class KRHomeController extends GetxController with WidgetsBindingObserver {
|
||||
kr_cutTag.value = 'auto';
|
||||
kr_cutSeletedTag.value = 'auto';
|
||||
kr_currentNodeName.value = "auto";
|
||||
// 当订阅服务初始化成功后,检查闪连自动连接
|
||||
KRLogUtil.kr_i(
|
||||
'订阅服务初始化完成,检查闪连自动连接', tag: 'QuickConnect');
|
||||
if (kr_currentListStatus.value != KRHomeViewsListStatus.kr_none) {
|
||||
kr_currentListStatus.value = KRHomeViewsListStatus.kr_none;
|
||||
} else {
|
||||
@@ -793,7 +790,7 @@ class KRHomeController extends GetxController with WidgetsBindingObserver {
|
||||
_kr_updateNodeLatency(element);
|
||||
kr_currentNodeName.value =
|
||||
kr_truncateText(element.selected, maxLength: 25);
|
||||
kr_moveToSelectedNode();
|
||||
// kr_moveToSelectedNode();
|
||||
}
|
||||
} catch (e) {
|
||||
KRLogUtil.kr_e('处理手动模式出错: $e', tag: 'HomeController');
|
||||
@@ -858,7 +855,7 @@ class KRHomeController extends GetxController with WidgetsBindingObserver {
|
||||
|
||||
kr_currentNodeName.value =
|
||||
kr_truncateText("${item.selected}(auto)", maxLength: 25);
|
||||
kr_moveToSelectedNode();
|
||||
// kr_moveToSelectedNode();
|
||||
kr_updateConnectionInfo();
|
||||
break;
|
||||
} else {
|
||||
@@ -889,7 +886,7 @@ class KRHomeController extends GetxController with WidgetsBindingObserver {
|
||||
kr_cutSeletedTag.value = bestNode;
|
||||
kr_currentNodeName.value =
|
||||
kr_truncateText("${bestNode}(auto)", maxLength: 25);
|
||||
kr_moveToSelectedNode();
|
||||
// kr_moveToSelectedNode();
|
||||
kr_updateConnectionInfo();
|
||||
}
|
||||
}
|
||||
@@ -1149,7 +1146,7 @@ class KRHomeController extends GetxController with WidgetsBindingObserver {
|
||||
}
|
||||
|
||||
// 移动到选中的节点
|
||||
kr_moveToSelectedNode();
|
||||
// kr_moveToSelectedNode();
|
||||
} catch (e) {
|
||||
KRLogUtil.kr_e('选择节点失败: $e', tag: 'HomeController');
|
||||
// 🔧 修复:选择节点失败时,根据连接状态设置合适的延迟值
|
||||
|
||||
Reference in New Issue
Block a user