1
0
Fork 0
mirror of synced 2024-06-15 17:04:58 +12:00

Remove redundant call to hide

It's already called by the `glib_stop_receiver` receiver.
This commit is contained in:
krzysdz 2021-02-14 00:42:19 +01:00
parent b1efea03aa
commit a6dbb7d2d9
No known key found for this signature in database
GPG key ID: D40EE407CFE943AC

View file

@ -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)
});