feat: toggle with identifier

BREAKING CHANGE: toggle now requires identifier
This commit is contained in:
EdJoPaTo
2022-08-31 14:21:53 +02:00
parent 0a631330e3
commit 63a5fa06f9
2 changed files with 11 additions and 5 deletions
+1 -1
View File
@@ -60,6 +60,6 @@ impl<'a> StatefulTree<'a> {
}
pub fn toggle(&mut self) {
self.state.toggle();
self.state.toggle_selected();
}
}