1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 01:38:21 +08:00

Opt: Reduce config read/write at WSA startup

This commit is contained in:
LmeSzinc
2022-04-14 00:48:23 +08:00
parent a21fce7788
commit 6614ec795a
2 changed files with 5 additions and 3 deletions

View File

@@ -21,9 +21,6 @@ class Device(Screenshot, Control, AppControl):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
if 'wsa' in self.config.Emulator_Serial:
self.config.Emulator_ScreenshotMethod = 'uiautomator2'
self.config.Emulator_ControlMethod = 'uiautomator2'
self.screenshot_interval_set()
def handle_night_commission(self, daily_trigger='21:00', threshold=30):