Skip to content

Commit 106a221

Browse files
committed
Fix: shop refresh not available
1 parent 928ff5f commit 106a221

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

module/shop/ui.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ def shop_refresh(self):
9191
if self.image_color_count(SHOP_REFRESH.button, color=(54, 117, 161), threshold=221, count=50):
9292
self.device.click(SHOP_REFRESH)
9393
continue
94-
# not available: (52, 74, 94)
94+
if self.image_color_count(SHOP_REFRESH.button, color=(52, 74, 94), threshold=221, count=50):
95+
logger.info('Refresh not available')
96+
break
9597
# no `continue`, act like SHOP_REFRESH not matched
9698
self.interval_clear(SHOP_REFRESH)
9799

0 commit comments

Comments
 (0)