diff --git a/src/app.rs b/src/app.rs index d832bb1..4c3c8a5 100644 --- a/src/app.rs +++ b/src/app.rs @@ -592,10 +592,11 @@ impl GPSApp { let _ = pipeline.set_state(PipelineState::Stopped); }); let app_weak = self.downgrade(); - add_button.connect_clicked(glib::clone!(@weak window => move |_| { + self.connect_button_action("button-clear", move |_| { let app = upgrade_weak!(app_weak); - app.load_graph("graphs/compositor.xml").expect("Unable to open file"); - })); + app.clear_graph(); + //app.load_graph("graphs/compositor.xml").expect("Unable to open file"); + }); // When user clicks on port with right button let app_weak = self.downgrade(); diff --git a/src/gps.ui b/src/gps.ui index e175c0b..201fc66 100644 --- a/src/gps.ui +++ b/src/gps.ui @@ -211,7 +211,7 @@ 1 1 - _clear + edit-clear