@@ -129,7 +129,6 @@ def init_ui(self):
129
129
)
130
130
self .init_finish_combox ()
131
131
132
-
133
132
def no_ADB_config (self ):
134
133
"""
135
134
没有ADB配置
@@ -254,6 +253,8 @@ def show_custom_info(self, msg):
254
253
)
255
254
case "agent_start" :
256
255
self .insert_colored_text (self .tr ("Agent service start" ))
256
+ case "agent_info" :
257
+ self .insert_colored_text (msg ["data" ])
257
258
258
259
# region 拖动事件
259
260
def dragEnter (self , event : QDropEvent ):
@@ -842,7 +843,7 @@ async def load_resources(self, PROJECT_DIR):
842
843
843
844
self .focus_tips = {}
844
845
self .on_error_list = []
845
-
846
+
846
847
for i in resource_path :
847
848
resource = (
848
849
i .replace ("{PROJECT_DIR}" , PROJECT_DIR )
@@ -1173,9 +1174,13 @@ async def run_tasks(self):
1173
1174
)
1174
1175
1175
1176
await maafw .run_task (self .entry , override_options )
1176
- if not self .task_failed and maa_config_data .interface_config ["task" ][
1177
- enter_index
1178
- ].get ("periodic" , False ) and cfg .get (cfg .speedrun ):
1177
+ if (
1178
+ not self .task_failed
1179
+ and maa_config_data .interface_config ["task" ][enter_index ].get (
1180
+ "periodic" , False
1181
+ )
1182
+ and cfg .get (cfg .speedrun )
1183
+ ):
1179
1184
maa_config_data .config ["task" ][self .config_index ][
1180
1185
"last_run"
1181
1186
] = datetime .now ().strftime ("%Y-%m-%d %H:%M:%S" )
@@ -1464,7 +1469,6 @@ def Select_Task(self):
1464
1469
self .SelectTask_Combox_1 .setCurrentText (
1465
1470
maa_config_data .config ["task" ][Select_Target ]["name" ]
1466
1471
)
1467
-
1468
1472
1469
1473
self .restore_options (maa_config_data .config ["task" ][Select_Target ]["option" ])
1470
1474
@@ -1576,7 +1580,7 @@ def show_task_options(
1576
1580
layout .addLayout (v_layout )
1577
1581
1578
1582
# 时间限制运行
1579
- if task .get ("periodic" ) in [1 , 2 ] and cfg .get (cfg .speedrun ):
1583
+ if task .get ("periodic" ) in [1 , 2 ] and cfg .get (cfg .speedrun ):
1580
1584
switch_v_layout = QVBoxLayout ()
1581
1585
1582
1586
# 添加主标签
0 commit comments