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

Chore: [ALAS] Abstract has_cached_image

This commit is contained in:
LmeSzinc
2024-04-13 02:26:41 +08:00
parent 7321af9e8f
commit 42af2e479f
3 changed files with 6 additions and 2 deletions

View File

@@ -146,7 +146,7 @@ class UI(InfoHandler):
while 1:
if skip_first_screenshot:
skip_first_screenshot = False
if not hasattr(self.device, "image") or self.device.image is None:
if not self.device.has_cached_image:
self.device.screenshot()
else:
self.device.screenshot()