mirror of
https://github.com/penpot/penpot.git
synced 2026-08-18 18:58:40 +00:00
🐛 Restore fold-containers as the combo master gate
Since fold-unchanged and depth folding arrived, withCombos ORed them in, so unchecking "fold containers" could no longer remove the combo boxes. The checkbox is the gate again; the derived fold rules are dormant without it. Signed-off-by: Álvaro Tejero Cantero <alvorithm@teje.ro>
This commit is contained in:
parent
2a515a1527
commit
d11d3060ea
@ -1070,8 +1070,9 @@ Graph Console
|
|||||||
}
|
}
|
||||||
if (anywayBtn) anywayBtn.style.display = "none";
|
if (anywayBtn) anywayBtn.style.display = "none";
|
||||||
graphViewStatus.textContent = graphStatusText(data) + filterNote;
|
graphViewStatus.textContent = graphStatusText(data) + filterNote;
|
||||||
renderGraph(toG6Data(shown, collapsedComboIds(),
|
// "fold containers" is the master gate for combo rendering; the
|
||||||
foldEnabled() || diffFoldEnabled() || depthFoldValue() != null,
|
// derived fold rules (fold-unchanged, depth) are dormant without it.
|
||||||
|
renderGraph(toG6Data(shown, collapsedComboIds(), foldEnabled(),
|
||||||
LAYOUTS[currentLayoutName()] == null, diffFoldEnabled()));
|
LAYOUTS[currentLayoutName()] == null, diffFoldEnabled()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user