window: Update use of FileDialog.open_future()

Requires an updated gtk-rs
This commit is contained in:
Christopher Davis 2023-01-14 14:23:54 -05:00
parent 9008c394f4
commit 2757e94e08
3 changed files with 16 additions and 16 deletions

View file

@ -378,7 +378,7 @@ impl LpWindow {
.modal(true)
.build();
if let Ok(Some(file)) = chooser.open_future(Some(self), gio::File::NONE).await {
if let Ok(file) = chooser.open_future(Some(self)).await {
self.set_image_from_file(&file, true);
}
}