Skip to content

Commit

Permalink
Fix: Handle popup confirm in opsi shop buy
Browse files Browse the repository at this point in the history
  • Loading branch information
LmeSzinc committed Jul 3, 2024
1 parent 4333b97 commit 1bda943
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions module/os_shop/shop.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ def os_shop_buy_execute(self, button, skip_first_screenshot=True) -> bool:
self.interval_reset(SHOP_BUY_CONFIRM_AMOUNT)
continue

if self.handle_popup_confirm('SHOP_BUY'):
continue

if not success and self.appear(PORT_SUPPLY_CHECK, offset=(20, 20), interval=5):
self.device.click(button)
continue
Expand Down

0 comments on commit 1bda943

Please sign in to comment.