mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-08-04 13:30:48 +00:00
Add recursive folder expand/collapse to the Layers panel (#2419)
* added_recursion_fix * Add tooltip and tidy up color visibility --------- Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
parent
7a3bb999a9
commit
d2fc919ba6
5 changed files with 36 additions and 13 deletions
|
@ -700,9 +700,9 @@ impl EditorHandle {
|
|||
|
||||
/// Toggle expansions state of a layer from the layer list
|
||||
#[wasm_bindgen(js_name = toggleLayerExpansion)]
|
||||
pub fn toggle_layer_expansion(&self, id: u64) {
|
||||
pub fn toggle_layer_expansion(&self, id: u64, recursive: bool) {
|
||||
let id = NodeId(id);
|
||||
let message = DocumentMessage::ToggleLayerExpansion { id };
|
||||
let message = DocumentMessage::ToggleLayerExpansion { id, recursive };
|
||||
self.dispatch(message);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue