mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-19 23:33:33 +08:00
Fix: Auto-fill emulator info on Windows only
This commit is contained in:
@@ -3,6 +3,7 @@ from datetime import datetime
|
|||||||
|
|
||||||
from lxml import etree
|
from lxml import etree
|
||||||
|
|
||||||
|
from module.device.env import IS_WINDOWS
|
||||||
# Patch pkg_resources before importing adbutils and uiautomator2
|
# Patch pkg_resources before importing adbutils and uiautomator2
|
||||||
from module.device.pkg_resources import get_distribution
|
from module.device.pkg_resources import get_distribution
|
||||||
|
|
||||||
@@ -85,7 +86,7 @@ class Device(Screenshot, Control, AppControl):
|
|||||||
raise
|
raise
|
||||||
|
|
||||||
# Auto-fill emulator info
|
# Auto-fill emulator info
|
||||||
if self.config.EmulatorInfo_Emulator == 'auto':
|
if IS_WINDOWS and self.config.EmulatorInfo_Emulator == 'auto':
|
||||||
_ = self.emulator_instance
|
_ = self.emulator_instance
|
||||||
|
|
||||||
self.screenshot_interval_set()
|
self.screenshot_interval_set()
|
||||||
|
|||||||
Reference in New Issue
Block a user