removed temporary debug code
This commit is contained in:
@@ -1,11 +1,3 @@
|
|||||||
#![feature(trait_alias)]
|
|
||||||
#![feature(str_as_str)]
|
|
||||||
#![feature(inherent_associated_types)]
|
|
||||||
|
|
||||||
pub mod buttons;
|
pub mod buttons;
|
||||||
pub mod tabs;
|
pub mod tabs;
|
||||||
pub mod tree;
|
pub mod tree;
|
||||||
|
|
||||||
pub fn do_something() {
|
|
||||||
println!("something");
|
|
||||||
}
|
|
||||||
|
|||||||
+2
-2
@@ -86,7 +86,7 @@ where
|
|||||||
) {
|
) {
|
||||||
match tree.node() {
|
match tree.node() {
|
||||||
Node::Leaf(name) => {
|
Node::Leaf(name) => {
|
||||||
let response = egui::Button::new(name.as_str()).frame(false).ui(ui);
|
let response = egui::Button::new(name).frame(false).ui(ui);
|
||||||
|
|
||||||
response.context_menu(|ui| *action = ctx.ui(ui, tree));
|
response.context_menu(|ui| *action = ctx.ui(ui, tree));
|
||||||
|
|
||||||
@@ -95,7 +95,7 @@ where
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
Node::Branch(name, children) => {
|
Node::Branch(name, children) => {
|
||||||
let show_response = egui::CollapsingHeader::new(name.as_str()).show(ui, |ui| {
|
let show_response = egui::CollapsingHeader::new(name).show(ui, |ui| {
|
||||||
for child in children.iter() {
|
for child in children.iter() {
|
||||||
Self::ui_inner(ui, action, ctx, child);
|
Self::ui_inner(ui, action, ctx, child);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user