window: Support dropping multiple files

This allows to scroll through all dropped files.
No further images from directories are loaded in
this mode.

Closes #35
This commit is contained in:
Sophie Herold 2023-04-18 01:52:06 +02:00
parent e710419a22
commit aca49427a1
4 changed files with 53 additions and 53 deletions

View file

@ -73,7 +73,7 @@ mod imp {
let application = self.obj();
for file in files {
let win = LpWindow::new(&*application);
win.set_image_from_file(file);
win.image_view().set_image_from_file(file.clone());
}
}
}