Re-sync workflow overview selection when moving LayerForge into fullscreen

This commit is contained in:
Dariusz L
2026-08-14 23:43:58 +02:00
parent ad1277d964
commit 4e660353b9
2 changed files with 15 additions and 0 deletions
+7
View File
@@ -2009,6 +2009,13 @@ async function createCanvasWidget(node, widget, _app) {
if (!isEditorOpen || requestId !== workflowOverviewToggleRequest) {
return;
}
if (expectedState) {
// Moving the LayerForge widget into fullscreen can cause
// ComfyUI to re-apply the previously selected node. Re-sync
// after the move as well, so an already-open properties panel
// switches from LayerForge details to the global Nodes view.
clearWorkflowOverviewSelection();
}
const panel = document.querySelector(workflowOverviewPanelSelector);
const nodesTab = panel?.querySelector(workflowOverviewNodesTabSelector) ?? null;
// Vue may need one extra frame to mount the global overview tabs after
+8
View File
@@ -2348,6 +2348,14 @@ $el("label.lf-clipboard-switch.lf-mask-switch", {
return;
}
if (expectedState) {
// Moving the LayerForge widget into fullscreen can cause
// ComfyUI to re-apply the previously selected node. Re-sync
// after the move as well, so an already-open properties panel
// switches from LayerForge details to the global Nodes view.
clearWorkflowOverviewSelection();
}
const panel = document.querySelector<HTMLElement>(workflowOverviewPanelSelector);
const nodesTab = panel?.querySelector<HTMLButtonElement>(
workflowOverviewNodesTabSelector