From a679b82af5cd0f1849c1cfc4bfcfd5551fe51416 Mon Sep 17 00:00:00 2001 From: DemonGatanjieu <207458273+DemonGatanjieu@users.noreply.github.com> Date: Tue, 20 Oct 2026 14:00:22 +0800 Subject: [PATCH] Combos: the browser no longer opens blank after Put on canvas Put on canvas hid the combo page before closing the browser, so the next open showed the Combos title over nothing. Now only the browser closes and it opens again on the combo list or the combo put down. Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 1 + web/modules/notebook_canvas.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9c2f5d5..22b2c5e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -101,6 +101,7 @@ - **It does not squeeze a narrow window**: where three columns do not fit (a side-panel browser window, a narrow drawer), the reference takes the card list's place and **‹ Cards** brings the list back, so the reference and the prompt you edit each get half the width. ### Fixes +- **The browser no longer opens blank after Put on canvas (搭配放到画布后再打开不再空白)**: putting a combo on the canvas hid the combo page before closing the browser, so the next time it opened the title said Combos and nothing was below. It now opens again on the combo list, or on the combo you put down. - **Edit emotions: every clip in the list, and the line follows the clip (编辑情绪:下拉列出全部音频,换音频台词跟着换)**: a box that already held a file listed only the files whose names contain it (the browser filters by the box's text), so a character's other clips seemed missing. Pressing the box now lists all of them, with the current file shown greyed; leaving without a pick keeps it. Picking another clip no longer keeps the old clip's line beside it: the line the node already reads for that clip is filled in, otherwise the line the node finds for the clip (its .txt / .lab or the annotation list) is filled in, with Anomalous_TTS from interface 14 on (older versions leave the box blank and the node reads the line when it speaks); going back to the first clip brings its line back. A blank line box shows, greyed, the line the node uses for its clip. - **Search a character's clips by line (按台词找参考音频)**: Edit emotions has a search box above the clips: type part of a line or a file name and the matches list with their lines, to hear (▶), **Use as main voice** or **Add as emotion** (a new emotion row with that clip and its line, ready for its name). Searching lines needs Anomalous_TTS interface 14; with an older version it searches file names. diff --git a/web/modules/notebook_canvas.js b/web/modules/notebook_canvas.js index bfe5a36..b0f9e41 100644 --- a/web/modules/notebook_canvas.js +++ b/web/modules/notebook_canvas.js @@ -123,7 +123,8 @@ function placeStructure(owner, data, position) { recordCanvasStep(app); if (built.problems.length) void anomalousAlert(`${t('comboPlaceProblems')}\n${problemLines(built.problems)}`); }; - owner.nbPanel.style.display = 'none'; + // Only the browser closes: the combo stays open in it, so it opens again where it was + // (hiding the combo page here left the browser blank the next time it opened). if (!position) { followPointer(owner, built.made, placed); owner.close(); @@ -191,7 +192,6 @@ export function sendNotebookToCanvas(position = null) { const notes = [kind !== wanted && t('comboLoraNodeFallback', { node: t(wanted.labelKey), pack: wanted.pack }), !clip && t('noteNeedsClip')]; if (notes.some(Boolean)) void anomalousAlert(notes.filter(Boolean).join('\n\n')); }; - this.nbPanel.style.display = 'none'; if (!position) { followPointer(this, groupNodes, placed); // first, so closing does not log the group yet this.close();