mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-16 06:25:24 +00:00
Fix: Resources is never reloaded after lang changed
This commit is contained in:
parent
bc5e7f887d
commit
56cc95cfd9
@ -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:
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user