redraw fixed

This commit is contained in:
Piyush मिश्रः 2022-03-29 22:16:50 +05:30
parent f351dea81a
commit c1633c7197
2 changed files with 4 additions and 5 deletions

View File

@ -134,13 +134,16 @@ impl ExportAllWindow {
if let Some(channel) = &*rw_read!(self.channel) { if let Some(channel) = &*rw_read!(self.channel) {
if let Ok(msg) = channel.try_recv() { if let Ok(msg) = channel.try_recv() {
match msg { match msg {
ThreadMessage::HideWindow => self.win.hide(), ThreadMessage::HideWindow => {
self.win.hide();
}
_ => (), _ => (),
} }
} }
} }
app::wait(); app::wait();
} }
self.win.redraw();
} }
// Set callbacks of elements // Set callbacks of elements

View File

@ -491,16 +491,12 @@ impl MainWindow {
); );
let mut export_all = ExportAllWindow::new(Arc::clone(&self.images_list)); let mut export_all = ExportAllWindow::new(Arc::clone(&self.images_list));
let mut win = self.win.clone();
self.menubar.add( self.menubar.add(
"&Actions/Export All with Quotes...\t", "&Actions/Export All with Quotes...\t",
Shortcut::None, Shortcut::None,
menu::MenuFlag::Normal, menu::MenuFlag::Normal,
move |_| { move |_| {
win.deactivate();
export_all.export(); export_all.export();
win.activate();
win.redraw();
fltk::app::awake(); fltk::app::awake();
}, },
); );