2020-11-01 02:23:31 +13:00
|
|
|
extern crate gtk;
|
|
|
|
use crate::gui_data::GuiData;
|
|
|
|
use gtk::prelude::*;
|
|
|
|
|
|
|
|
pub fn connect_button_stop(gui_data: &GuiData) {
|
2020-12-02 22:25:27 +13:00
|
|
|
let button_stop_in_dialog = gui_data.button_stop_in_dialog.clone();
|
2020-11-05 06:15:06 +13:00
|
|
|
let stop_sender = gui_data.stop_sender.clone();
|
2020-12-02 22:25:27 +13:00
|
|
|
button_stop_in_dialog.connect_clicked(move |_| {
|
2020-11-05 06:15:06 +13:00
|
|
|
stop_sender.send(()).unwrap();
|
2020-11-01 02:23:31 +13:00
|
|
|
});
|
|
|
|
}
|