Remove redundant call to hide
It's already called by the `glib_stop_receiver` receiver.
This commit is contained in:
parent
b1efea03aa
commit
a6dbb7d2d9
|
@ -462,13 +462,10 @@ pub fn initialize_gui(gui_data: &mut GuiData) {
|
|||
{
|
||||
let window_progress = gui_data.progress_window.window_progress.clone();
|
||||
let stop_sender = gui_data.stop_sender.clone();
|
||||
let taskbar_state = gui_data.taskbar_state.clone();
|
||||
|
||||
window_progress.hide_on_delete();
|
||||
|
||||
window_progress.connect_delete_event(move |_e, _y| {
|
||||
taskbar_state.hide();
|
||||
|
||||
stop_sender.send(()).unwrap();
|
||||
gtk::Inhibit(true)
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue