mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-18 16:11:29 +08:00
Fix: Delay the wrong task after restart (#755)
This commit is contained in:
6
alas.py
6
alas.py
@@ -110,6 +110,10 @@ class AzurLaneAutoScript:
|
||||
from module.handler.login import LoginHandler
|
||||
LoginHandler(self.config, device=self.device).app_restart()
|
||||
|
||||
def start(self):
|
||||
from module.handler.login import LoginHandler
|
||||
LoginHandler(self.config, device=self.device).app_start()
|
||||
|
||||
def goto_main(self):
|
||||
from module.ui.ui import UI
|
||||
UI(self.config, device=self.device).ui_goto_main()
|
||||
@@ -284,7 +288,7 @@ class AzurLaneAutoScript:
|
||||
logger.info('Close game during wait')
|
||||
self.device.app_stop()
|
||||
self.wait_until(task.next_run)
|
||||
self.run('restart')
|
||||
self.run('start')
|
||||
elif method == 'goto_main':
|
||||
logger.info('Goto main page during wait')
|
||||
self.run('goto_main')
|
||||
|
||||
Reference in New Issue
Block a user