mirror of
https://github.com/TheFunny/ArisuAutoSweeper
synced 2026-10-10 11:22:16 +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, 'device')
|
||||
continue
|
||||
if task.command == 'Restart':
|
||||
del_cached_property(self, 'config')
|
||||
del_cached_property(self, 'device')
|
||||
continue
|
||||
# 重新启动模拟器
|
||||
if task.command != 'Restart':
|
||||
self.config.task_call('Restart')
|
||||
|
||||
Reference in New Issue
Block a user