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

Fix: Limit swipe times in retirement_get_common_rarity_cv (#4116)

This commit is contained in:
LmeSzinc
2024-09-09 23:38:34 +08:00
parent 42bda736c0
commit f5fa5b6901

View File

@@ -500,7 +500,10 @@ class Retirement(Enhancement, QuickRetireSettingHandler):
if button is not None:
return button
while RETIRE_CONFIRM_SCROLL.appear(main=self):
for _ in range(7):
if not RETIRE_CONFIRM_SCROLL.appear(main=self):
logger.info('Scroll bar disappeared, stop')
break
RETIRE_CONFIRM_SCROLL.next_page(main=self)
button = self.retirement_get_common_rarity_cv_in_page()
if button is not None: