application: Remove redudant present() for dialog

Part-of: <https://gitlab.gnome.org/GNOME/loupe/-/merge_requests/576>
This commit is contained in:
Sophie Herold 2026-06-22 13:56:05 +02:00 • committed by Marge Bot
parent eb4e5c469a
commit 6ffa11fbc1

View file

@ -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;
} }
} }