diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 513656d..e35a3e0 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -24,6 +24,9 @@
+
+
+
{
"associatedIndex": 4
}
@@ -625,7 +628,7 @@
-
+
diff --git a/docutranslate/app.py b/docutranslate/app.py
index 229c844..a5869ae 100644
--- a/docutranslate/app.py
+++ b/docutranslate/app.py
@@ -577,8 +577,7 @@ HTML_TEMPLATE = """
}
function loadSettings() {
- const lastPlatform = getFromStorage('translator_last_platform', 'custom');
- platformSelect.value = lastPlatform;
+ platformSelect.value = getFromStorage('translator_last_platform', 'custom');
updatePlatformUI(); // This will also load API key and model for the platform
toLangSelect.value = getFromStorage('translator_to_lang', '中文');
formulaCheckbox.checked = getFromStorage('translator_formula_ocr') === 'true';
@@ -792,7 +791,7 @@ async def _perform_translation(params: Dict[str, Any], file_contents: bytes, ori
duration = end_time - current_state["task_start_time"]
translater_logger.info(f"翻译任务 '{original_filename}' 已被取消 (用时 {duration:.2f} 秒).")
current_state.update({
- "status_message": f"翻译任务已取消(原先的转换阶段仍会后台进行) (用时 {duration:.2f} 秒).",
+ "status_message": f"翻译任务已取消(若有转换任务仍会后台进行) (用时 {duration:.2f} 秒).",
"error_flag": False,
"download_ready": False,
"markdown_content": None,
diff --git a/pyproject.toml b/pyproject.toml
index 8b55b7b..52d49e3 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -9,7 +9,7 @@ dependencies = [
"httpx",
"markdown2",
"fastapi[standard]>=0.115.12",
- "pyinstaller>=6.13.0",
+# "pyinstaller>=6.13.0",
]
[project.scripts]