diff --git a/Difficult_Rocket/utils/translate.py b/Difficult_Rocket/utils/translate.py index cd71d06..ffd58ee 100644 --- a/Difficult_Rocket/utils/translate.py +++ b/Difficult_Rocket/utils/translate.py @@ -52,6 +52,8 @@ class TranslateConfig: class Translates: + name = 'Translate' + def __init__(self, value: Union[Dict[str, Any], list, tuple, str], config: Optional[TranslateConfig] = None, @@ -84,13 +86,15 @@ class Translates: cache = self.value[item] cache_get_list.append((True, item)) except (KeyError, TypeError): + cache_get_list.append((False, item)) # 出现问题 if DR_option.report_translate_no_found: frame = inspect.currentframe() last_frame = frame.f_back if last_frame.f_code == self.__getattr__.__code__: last_frame = last_frame.f_back - call_info = f'Translate Not Found at {last_frame.f_code.co_name} by {".".join([x[1] for x in cache_get_list])} at:' \ + call_info = f'{self.name} Not Found at {last_frame.f_code.co_name} by ' \ + f'{".".join([x[1] for x in cache_get_list])} at:' \ f'{last_frame.f_code.co_filename}:{last_frame.f_lineno}' print(call_info) # 如果不抛出错误 diff --git a/configs/main.toml b/configs/main.toml index 0a499df..b002a76 100644 --- a/configs/main.toml +++ b/configs/main.toml @@ -8,8 +8,8 @@ fonts_folder = "libs/fonts" [window] style = "None" -width = 937 -height = 602 +width = 1024 +height = 768 visible = true gui_scale = 1 caption = "Difficult Rocket {version}" diff --git a/nuitka1-complie.ps1 b/nuitka1-complie.ps1 index 19cf7e4..6cbfd4c 100644 --- a/nuitka1-complie.ps1 +++ b/nuitka1-complie.ps1 @@ -1,6 +1,8 @@ $start_time = Get-Uptime Write-Output $start_time +python .\.github\workflows\get_info.py + $arg = @() # 输出配置 $arg += @("--standalone")