A WiFi security auditing software
ui: close the file chooser dialog when the user cancels (#194)
Martin Olivierb633d29691c9
diff --git a/crates/gui/src/frontend/connections/app.rs b/crates/gui/src/frontend/connections/app.rsindex 307ad7e..793ccb1 100755--- a/crates/gui/src/frontend/connections/app.rs+++ b/crates/gui/src/frontend/connections/app.rs@@ -994,9 +994,9 @@ fn connect_capture_button(app_data: Rc<AppData>) {#[strong]app_data,move |this, response| {- if response == ResponseType::Accept {- this.close();+ this.close();+ if response == ResponseType::Accept {let gio_file = match this.file() {Some(file) => file,None => return,diff --git a/crates/gui/src/frontend/connections/scan.rs b/crates/gui/src/frontend/connections/scan.rsindex 15b23df..42a5b5d 100644--- a/crates/gui/src/frontend/connections/scan.rs+++ b/crates/gui/src/frontend/connections/scan.rs@@ -111,9 +111,9 @@ fn connect_export_button(app_data: Rc<AppData>) {#[strong]app_data,move |this, response| {- if response == ResponseType::Accept {- this.close();+ this.close();+ if response == ResponseType::Accept {let gio_file = match this.file() {Some(file) => file,None => return,@@ -170,9 +170,9 @@ fn connect_report_button(app_data: Rc<AppData>) {#[strong]app_data,move |this, response| {- if response == ResponseType::Accept {- this.close();+ this.close();+ if response == ResponseType::Accept {let gio_file = match this.file() {Some(file) => file,None => return,