edit_window: Return to image view after saving
This commit is contained in:
parent
f12e6021b4
commit
e4bb97140a
2 changed files with 14 additions and 1 deletions
|
|
@ -247,6 +247,11 @@ impl LpWindow {
|
|||
.set_visible_child(&*self.imp().image_window);
|
||||
}
|
||||
|
||||
pub fn show_specific_image(&self, file: gio::File) {
|
||||
self.image_view().set_images_from_files(vec![file]);
|
||||
self.show_image();
|
||||
}
|
||||
|
||||
pub fn show_edit(&self) {
|
||||
if let Some(image) = self.image_view().current_image() {
|
||||
let edit_child = &*self.imp().edit_window_child;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue