redraw fixed
This commit is contained in:
parent
f351dea81a
commit
c1633c7197
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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();
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue