mirror of
https://github.com/TheFunny/ArisuAutoSweeper
synced 2026-10-16 21:12:21 +00:00
fix: use autofill emulator info on Windows only
This commit is contained in:
@@ -2,6 +2,7 @@ import collections
|
|||||||
|
|
||||||
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