application: Remove redudant present() for dialog
Part-of: <https://gitlab.gnome.org/GNOME/loupe/-/merge_requests/576>
This commit is contained in:
parent
eb4e5c469a
commit
6ffa11fbc1
1 changed files with 2 additions and 2 deletions
|
|
@ -161,7 +161,8 @@ impl LpApplication {
|
||||||
);
|
);
|
||||||
|
|
||||||
glib::MainContext::default().spawn_local(async move {
|
glib::MainContext::default().spawn_local(async move {
|
||||||
let res = dialog_clone.choose_future(&win_clone).await;
|
let res =
|
||||||
|
dialog_clone.choose_future(Some(&win_clone)).await;
|
||||||
println!("User response: {}", res);
|
println!("User response: {}", res);
|
||||||
match res.as_str() {
|
match res.as_str() {
|
||||||
"cancel" => {}
|
"cancel" => {}
|
||||||
|
|
@ -176,7 +177,6 @@ impl LpApplication {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
dialog.present(Some(&win));
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue