From 551769baf6a301148fce599565b6d643eed62c6d Mon Sep 17 00:00:00 2001 From: Gabriele Musco Date: Thu, 22 Jun 2023 21:57:31 +0200 Subject: [PATCH] fix: add transient_for to profile not editable dialog --- src/ui/main_view.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/main_view.rs b/src/ui/main_view.rs index ae82034..f1a47e5 100644 --- a/src/ui/main_view.rs +++ b/src/ui/main_view.rs @@ -256,7 +256,7 @@ impl SimpleComponent for MainView { ) -> ComponentParts { let profile_not_editable_dialog = adw::MessageDialog::builder() .modal(true) - // .transient_for(root.root().unwrap().upcast_ref::()) + .transient_for(root.root().unwrap().downcast_ref::().unwrap()) .heading("This profile is not editable") .body(concat!( "You can duplicate it and edit the new copy. ",