From 0e9d87a0006267a60254cc9c632ffd5eb55a50f8 Mon Sep 17 00:00:00 2001 From: LmeSzinc <37934724+LmeSzinc@users.noreply.github.com> Date: Mon, 30 Oct 2023 02:31:14 +0800 Subject: [PATCH] Fix: Re-check in-game text lang after waiting a task --- module/base/resource.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/module/base/resource.py b/module/base/resource.py index fd9d7cd58..69156aa27 100644 --- a/module/base/resource.py +++ b/module/base/resource.py @@ -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()