Fix: Resources is never reloaded after lang changed

This commit is contained in:
LmeSzinc 2023-09-16 00:05:32 +08:00
parent bc5e7f887d
commit 56cc95cfd9
2 changed files with 2 additions and 1 deletions

View File

@ -48,6 +48,7 @@ class MainPage(ModuleBase):
logger.info(f'check_lang_from_map_plane matched lang: {lang}')
if lang_unknown or lang != server.lang:
self.config.Emulator_GameLanguage = lang
server.set_lang(lang)
return lang
if lang_unknown:

View File

@ -193,7 +193,7 @@ class BattlePassUI(UI):
if self.appear(CLOSE_CHOOSE_GIFT):
logger.info('Got reward but have gift to choose')
break
if self.appear_then_click(REWARDS_CLAIM_ALL):
if self.appear_then_click(REWARDS_CLAIM_ALL, interval=2):
continue
skip_first_screenshot = True