window: Update use of FileDialog.open_future()
Requires an updated gtk-rs
This commit is contained in:
parent
9008c394f4
commit
2757e94e08
3 changed files with 16 additions and 16 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue