mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-24 02:08:12 +08: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:
co-authored by
Keavon Chambers
parent
7a3bb999a9
commit
d2fc919ba6
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user