mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 18:39:04 +08:00
Fix: Missing awaken_popup_close if resource insufficient
This commit is contained in:
parent
46b1abfdff
commit
5a74418a20
@ -152,6 +152,7 @@ class Awaken(Dock):
|
||||
return result
|
||||
elif result is False:
|
||||
logger.info('Insufficient resources to awaken')
|
||||
self.awaken_popup_close()
|
||||
return 'insufficient'
|
||||
elif result is True:
|
||||
# Sufficient resources
|
||||
@ -306,6 +307,8 @@ class Awaken(Dock):
|
||||
continue
|
||||
if self.handle_awaken_finish():
|
||||
continue
|
||||
if self.appear_then_click(AWAKEN_CANCEL, offset=(20, 20), interval=3):
|
||||
continue
|
||||
if self.is_in_main(interval=5):
|
||||
self.device.click(page_main.links[page_dock])
|
||||
continue
|
||||
|
||||
Loading…
Reference in New Issue
Block a user