Fix: Re-check in-game text lang after waiting a task

This commit is contained in:
LmeSzinc 2023-10-30 02:31:14 +08:00
parent 913de2771b
commit 0e9d87a000

View File

@ -81,5 +81,11 @@ def release_resources(next_task=''):
# logger.info(f'Release {obj}')
obj.resource_release()
# If no task, check in-game text language again at next run
# cause user may change it
if not next_task:
from tasks.base.main_page import MainPage
MainPage._lang_checked = False
# Useless in most cases, but just call it
# gc.collect()