mirror of https://github.com/qarmin/czkawka
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.
12 lines
345 B
Rust
12 lines
345 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.button_stop_in_dialog.clone();
|
|
let stop_sender = gui_data.stop_sender.clone();
|
|
button_stop_in_dialog.connect_clicked(move |_| {
|
|
stop_sender.send(()).unwrap();
|
|
});
|
|
}
|