mirror of
https://github.com/TheFunny/ArisuAutoSweeper
synced 2026-10-10 07:02:06 +00:00
fix: handle emulator restart command by clearing cached properties
This commit is contained in:
@@ -252,6 +252,10 @@ class AzurLaneAutoScript:
|
|||||||
del_cached_property(self, 'config')
|
del_cached_property(self, 'config')
|
||||||
del_cached_property(self, 'device')
|
del_cached_property(self, 'device')
|
||||||
continue
|
continue
|
||||||
|
if task.command == 'Restart':
|
||||||
|
del_cached_property(self, 'config')
|
||||||
|
del_cached_property(self, 'device')
|
||||||
|
continue
|
||||||
# 重新启动模拟器
|
# 重新启动模拟器
|
||||||
if task.command != 'Restart':
|
if task.command != 'Restart':
|
||||||
self.config.task_call('Restart')
|
self.config.task_call('Restart')
|
||||||
|
|||||||
Reference in New Issue
Block a user