1
0
mirror of https://github.com/TheFunny/ArisuAutoSweeper synced 2025-12-16 11:15:13 +00:00

fix: add required argument

This commit is contained in:
YoursFunny 2023-11-19 19:41:43 +08:00
parent 143f519adb
commit 0a697e9398
Signed by: YoursFunny
GPG Key ID: 207EDC3CD5B40F9C

View File

@ -31,13 +31,13 @@ class Login(UI):
return False
@Config.when(Emulator_GameLanguage='en')
def _handle_survey():
def _handle_survey(self):
if self.appear_then_click(SURVEY):
return True
return False
@Config.when(Emulator_GameLanguage=None)
def _handle_survey():
def _handle_survey(self):
pass
logger.hr('App login')
@ -89,7 +89,7 @@ class Login(UI):
# continue
if self.appear_then_click(UPDATE):
continue
if _handle_survey():
if _handle_survey(self):
continue
if self.ui_additional():
continue