Fix duplicate image generation toast on tool call.

This commit is contained in:
Cohee
2026-02-20 01:09:56 +02:00
parent ab8d7e5184
commit 8462cbaebb
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -2219,7 +2219,7 @@
"sd_res_1280x720": "1280x720 (16:9720p,横向壁纸)",
"sd_res_720x1280": "720x1280 (9:16720p,纵向壁纸)",
"<Enter Model ID above>": "<在上方输入模型 ID>",
"Generating image": "正在生成图像",
"Generating an image": "正在生成图像",
"Delete the workflow? This action is irreversible.": "删除工作流?此操作无法被撤销。",
"Enter new workflow name:": "输入新工作流名称:",
"A workflow with that name already exists": "已存在同名工作流",
@@ -2871,7 +2871,7 @@ function ensureSelectionExists(setting, selector) {
function updateGenerationIndicator() {
if (activeGenerations > 0) {
const countText = activeGenerations > 1 ? ` (${activeGenerations})` : '';
const toastText = `<i class="fa-solid fa-spinner fa-spin"></i> ${t`Generating image`}${countText}...`;
const toastText = `<i class="fa-solid fa-spinner fa-spin"></i> ${t`Generating an image`}${countText}...`;
// Show persistent toast if not already showing
if (!generationToast) {
@@ -5344,7 +5344,6 @@ function registerFunctionTool() {
const url = await generatePicture(initiators.tool, {}, args.prompt);
return encodeURI(url);
},
formatMessage: () => 'Generating an image...',
});
}