1
0
Fork 0
mirror of synced 2024-05-21 04:43:50 +12:00
czkawka/czkawka_gui/src/connect_button_stop.rs
2021-01-25 18:23:42 +01:00

12 lines
361 B
Rust

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