mirror of
https://github.com/TheFunny/ArisuAutoSweeper
synced 2026-10-17 01:32:12 +00:00
fix: handle first screenshot in loop()
This commit is contained in:
@@ -91,6 +91,10 @@ class ModuleBase:
|
|||||||
skip_first = False
|
skip_first = False
|
||||||
else:
|
else:
|
||||||
self.device.screenshot()
|
self.device.screenshot()
|
||||||
|
try:
|
||||||
|
yield self.device.image
|
||||||
|
except AttributeError:
|
||||||
|
self.device.screenshot()
|
||||||
yield self.device.image
|
yield self.device.image
|
||||||
|
|
||||||
def loop_hierarchy(self, skip_first=True):
|
def loop_hierarchy(self, skip_first=True):
|
||||||
|
|||||||
Reference in New Issue
Block a user