feat: 初始化并发问题处理
Build Windows / 编译 libcore (Windows) (20.15.1) (push) Has been cancelled
Build Windows / build (push) Has been cancelled

This commit is contained in:
2025-11-13 05:15:18 -08:00
parent 748ec6bee9
commit a47174df56
5 changed files with 400 additions and 118 deletions
@@ -80,8 +80,8 @@ class HINodeListView extends GetView<HINodeListController> {
// 并设置透明背景,让父组件的背景可以透出来
return Material(
color: Colors.transparent,
// child: _buildSubscribeList(context)
child: _kr_buildRegionList(context)
child: _buildSubscribeList(context)
// child: _kr_buildRegionList(context)
);
}
@@ -380,7 +380,7 @@ class HINodeListView extends GetView<HINodeListController> {
children: [
Flexible(
child: Text(
controller.homeController.kr_getCountryFullName(item.country),
'${controller.homeController.kr_getCountryFullName(item.country)}-${item.tag}',
style: KrAppTextStyle(fontSize: 14, color: Colors.white),
overflow: TextOverflow.ellipsis,
maxLines: 1,
@@ -849,6 +849,7 @@ class KRHomeController extends GetxController with WidgetsBindingObserver {
if (kDebugMode) {
}
await KRSingBoxImp.instance.kr_start();
KRLogUtil.kr_i('✅ 连接命令已发送', tag: 'HomeController');
if (kDebugMode) {
}
@@ -2185,6 +2186,7 @@ class KRHomeController extends GetxController with WidgetsBindingObserver {
kr_isConnected.value = true;
kr_startConnectionTimer();
kr_updateConnectionInfo();
KRSingBoxImp.instance.kr_debugTunConnectivity();
// 🔧 修复:同步已启动状态时,尝试更新延迟值
if (!_kr_tryUpdateDelayFromActiveGroups()) {