1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-17 21:35:24 +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

@@ -72,6 +72,10 @@ class Screenshot(Adb, WSA, DroidCast, AScreenCap, Scrcpy, NemuIpc):
return self.image
@property
def has_cached_image(self):
return hasattr(self, 'image') and self.image is not None
def _handle_orientated_image(self, image):
"""
Args: