fix: add transient_for to profile not editable dialog

This commit is contained in:
Gabriele Musco 2023-06-22 21:57:31 +02:00
parent d44e0815a0
commit 551769baf6
No known key found for this signature in database
GPG key ID: 1068D795C80E51DE

View file

@ -256,7 +256,7 @@ impl SimpleComponent for MainView {
) -> ComponentParts<Self> {
let profile_not_editable_dialog = adw::MessageDialog::builder()
.modal(true)
// .transient_for(root.root().unwrap().upcast_ref::<gtk::Window>())
.transient_for(root.root().unwrap().downcast_ref::<gtk::Window>().unwrap())
.heading("This profile is not editable")
.body(concat!(
"You can duplicate it and edit the new copy. ",