mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-23 23:45:55 +08:00
Opt: Better help text for app start/stop (#932)
This commit is contained in:
@@ -130,13 +130,18 @@ class Device(Screenshot, Control, AppControl):
|
|||||||
self.stuck_record_check = empty_function
|
self.stuck_record_check = empty_function
|
||||||
|
|
||||||
def app_start(self):
|
def app_start(self):
|
||||||
|
if not self.config.Error_HandleError:
|
||||||
|
logger.critical('No app stop/start, because HandleError disabled')
|
||||||
|
logger.critical('Please enable Alas.Error.HandleError or manually login to AzurLane')
|
||||||
|
raise RequestHumanTakeover
|
||||||
super().app_start()
|
super().app_start()
|
||||||
self.stuck_record_clear()
|
self.stuck_record_clear()
|
||||||
self.click_record_clear()
|
self.click_record_clear()
|
||||||
|
|
||||||
def app_stop(self):
|
def app_stop(self):
|
||||||
if not self.config.Error_HandleError:
|
if not self.config.Error_HandleError:
|
||||||
logger.critical('No app stop, because HandleError disabled, please solve it manually')
|
logger.critical('No app stop/start, because HandleError disabled')
|
||||||
|
logger.critical('Please enable Alas.Error.HandleError or manually login to AzurLane')
|
||||||
raise RequestHumanTakeover
|
raise RequestHumanTakeover
|
||||||
super().app_stop()
|
super().app_stop()
|
||||||
self.stuck_record_clear()
|
self.stuck_record_clear()
|
||||||
|
|||||||
Reference in New Issue
Block a user