Fix duplicate image generation toast on tool call.

8462cbaebb9d74ae3db7d534571fa0f15f2ce960

Cohee <18619528+Cohee1207@users.noreply.github.com>

2 files changed, +2 -3Showing whitespace changes
public/locales/zh-cn.json+1 -1
@@ -2219,7 +2219,7 @@
22192219 "sd_res_1280x720": "1280x720 (16:9,720p,横向壁纸)",
22202220 "sd_res_720x1280": "720x1280 (9:16,720p,纵向壁纸)",
22212221 "<Enter Model ID above>": "<在上方输入模型 ID>",
22222222 "Generating an image": "正在生成图像",
22232223 "Delete the workflow? This action is irreversible.": "删除工作流?此操作无法被撤销。",
22242224 "Enter new workflow name:": "输入新工作流名称:",
22252225 "A workflow with that name already exists": "已存在同名工作流",
public/scripts/extensions/stable-diffusion/index.js+1 -2
@@ -2871,7 +2871,7 @@ function ensureSelectionExists(setting, selector) {
28712871function updateGenerationIndicator() {
28722872 if (activeGenerations > 0) {
28732873 const countText = activeGenerations > 1 ? ` (${activeGenerations})` : '';
28742874 const toastText = `<i class="fa-solid fa-spinner fa-spin"></i> ${t`Generating an image`}${countText}...`;
28752875
28762876 // Show persistent toast if not already showing
28772877 if (!generationToast) {
@@ -5344,7 +5344,6 @@ function registerFunctionTool() {
53445344 const url = await generatePicture(initiators.tool, {}, args.prompt);
53455345 return encodeURI(url);
53465346 },
5347- formatMessage: () => 'Generating an image...',
53485347 });
53495348}
53505349