You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
czkawka/czkawka_gui/src/connect_button_stop.rs

12 lines
318 B
Rust

extern crate gtk;
use crate::gui_data::GuiData;
use gtk::prelude::*;
pub fn connect_button_stop(gui_data: &GuiData) {
let buttons_stop = gui_data.buttons_stop.clone();
let stop_sender = gui_data.stop_sender.clone();
buttons_stop.connect_clicked(move |_| {
stop_sender.send(()).unwrap();
});
}