fix: remove broken transient_for

This commit is contained in:
Gabriele Musco 2023-06-23 19:51:00 +02:00
commit 8583eadd37
No known key found for this signature in database
GPG key ID: 1068D795C80E51DE
2 changed files with 0 additions and 2 deletions

View file

@ -201,7 +201,6 @@ impl SimpleComponent for InstallWivrnBox {
) -> ComponentParts<Self> { ) -> ComponentParts<Self> {
let adb_missing_dialog = adw::MessageDialog::builder() let adb_missing_dialog = adw::MessageDialog::builder()
.modal(true) .modal(true)
.transient_for(root.root().unwrap().downcast_ref::<gtk::Window>().unwrap())
.title("ADB is not installed") .title("ADB is not installed")
.body("Please install ADB on your computer to install WiVRn on your Android headset") .body("Please install ADB on your computer to install WiVRn on your Android headset")
.hide_on_close(true) .hide_on_close(true)

View file

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