feat: 初始化并发问题处理
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user