From c1633c71978f2842f35233cf4583c97f82f2524f Mon Sep 17 00:00:00 2001 From: Piyush Mishra Date: Tue, 29 Mar 2022 22:16:50 +0530 Subject: [PATCH] redraw fixed --- src/export_all_window.rs | 5 ++++- src/main_window.rs | 4 ---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/export_all_window.rs b/src/export_all_window.rs index ce603f5..4d42a2e 100644 --- a/src/export_all_window.rs +++ b/src/export_all_window.rs @@ -134,13 +134,16 @@ impl ExportAllWindow { if let Some(channel) = &*rw_read!(self.channel) { if let Ok(msg) = channel.try_recv() { match msg { - ThreadMessage::HideWindow => self.win.hide(), + ThreadMessage::HideWindow => { + self.win.hide(); + } _ => (), } } } app::wait(); } + self.win.redraw(); } // Set callbacks of elements diff --git a/src/main_window.rs b/src/main_window.rs index 7d2473c..7b1375d 100644 --- a/src/main_window.rs +++ b/src/main_window.rs @@ -491,16 +491,12 @@ impl MainWindow { ); let mut export_all = ExportAllWindow::new(Arc::clone(&self.images_list)); - let mut win = self.win.clone(); self.menubar.add( "&Actions/Export All with Quotes...\t", Shortcut::None, menu::MenuFlag::Normal, move |_| { - win.deactivate(); export_all.export(); - win.activate(); - win.redraw(); fltk::app::awake(); }, );