From 86ffcebd1b489cf3b0f7167eba1633a2538b02ca Mon Sep 17 00:00:00 2001 From: "Wyatt J. Miller" Date: Mon, 23 May 2022 19:50:07 -0400 Subject: [PATCH] made dialogs modal --- src/boxes.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/boxes.rs b/src/boxes.rs index ba89499..accfae1 100644 --- a/src/boxes.rs +++ b/src/boxes.rs @@ -71,6 +71,7 @@ impl RomBox { &[("_Cancel", ResponseType::Cancel), ("_Open", ResponseType::Accept)] ); + dialog.set_modal(true); dialog.run_async(|d, r| { match r { ResponseType::Accept => d.close(), @@ -132,12 +133,13 @@ impl PatchBox { self.patch_button.connect_clicked(clone!(@weak self as this => move |_| { let dialog = FileChooserDialog::new::( - Some("Choose a ROM"), + Some("Choose a Patch"), Some(&app), FileChooserAction::Open, &[("_Cancel", ResponseType::Cancel), ("_Open", ResponseType::Accept)] ); + dialog.set_modal(true); dialog.run_async(|d, r| { match r { ResponseType::Accept => d.close(),