1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 09:48:20 +08:00

Fix: Failed to execute dock repair on slow PCs

This commit is contained in:
LmeSzinc
2022-09-20 01:17:40 +08:00
parent 7c502672ce
commit 91d4d1740d
2 changed files with 6 additions and 12 deletions

View File

@@ -122,6 +122,12 @@ class PortHandler(OSShopHandler):
else:
self.device.screenshot()
# End
if self.info_bar_count():
break
if repaired and self.appear(PORT_DOCK_CHECK, offset=(20, 20)):
break
# PORT_DOCK_CHECK is button to repair all.
if self.appear_then_click(PORT_DOCK_CHECK, offset=(20, 20), interval=2):
continue
@@ -129,10 +135,4 @@ class PortHandler(OSShopHandler):
repaired = True
continue
# End
if self.info_bar_count():
break
if repaired and self.appear(PORT_DOCK_CHECK, offset=(20, 20)):
break
self.ui_back(appear_button=PORT_DOCK_CHECK, check_button=PORT_CHECK, skip_first_screenshot=True)