Auto-hide and restore mask overlay in batch preview

BatchPreviewManager now automatically hides the mask overlay when batch preview starts and restores its previous state when preview ends. The mask toggle button's state and label are updated accordingly. Also, mask toggle button IDs are now unique per canvas node.
This commit is contained in:
Dariusz L
2025-07-03 02:26:44 +02:00
parent 9f9a733731
commit 152a3f7dff
2 changed files with 26 additions and 1 deletions

View File

@@ -871,7 +871,7 @@ async function createCanvasWidget(node, widget, app) {
$el("div.painter-separator"),
$el("div.painter-button-group", {id: "mask-controls"}, [
$el("button.painter-button.primary", {
id: "toggle-mask-btn",
id: `toggle-mask-btn-${node.id}`,
textContent: "Show Mask",
title: "Toggle mask overlay visibility",
onclick: (e) => {