mirror of
https://github.com/LmeSzinc/AzurLaneAutoScript.git
synced 2025-01-09 05:47:30 +08:00
Opt: Ensure game running when task queue empty and going to page_main
This commit is contained in:
parent
8374174d55
commit
a1475490bb
4
alas.py
4
alas.py
@ -119,7 +119,10 @@ class AzurLaneAutoScript:
|
||||
LoginHandler(self.config, device=self.device).app_start()
|
||||
|
||||
def goto_main(self):
|
||||
from module.handler.login import LoginHandler
|
||||
from module.ui.ui import UI
|
||||
if not self.device.app_is_running():
|
||||
LoginHandler(self.config, device=self.device).app_start()
|
||||
UI(self.config, device=self.device).ui_goto_main()
|
||||
|
||||
def research(self):
|
||||
@ -324,6 +327,7 @@ class AzurLaneAutoScript:
|
||||
self.run('goto_main')
|
||||
self.wait_until(task.next_run)
|
||||
elif method == 'stay_there':
|
||||
logger.info('Stay there during wait')
|
||||
self.wait_until(task.next_run)
|
||||
else:
|
||||
logger.warning(f'Invalid Optimization_WhenTaskQueueEmpty: {method}, fallback to stay_there')
|
||||
|
Loading…
Reference in New Issue
Block a user