Unverified Commit c89d5061 authored by Bilal Elmoussaoui's avatar Bilal Elmoussaoui
Browse files

new project: destroy the dialog

parent 8b4aec1f
Pipeline #184746 passed with stage
in 13 minutes and 36 seconds
...@@ -50,8 +50,8 @@ impl NewProjectDialog { ...@@ -50,8 +50,8 @@ impl NewProjectDialog {
(&gettext("Select"), gtk::ResponseType::Accept), (&gettext("Select"), gtk::ResponseType::Accept),
(&gettext("Cancel"), gtk::ResponseType::Cancel) (&gettext("Cancel"), gtk::ResponseType::Cancel)
]); ]);
dialog.set_current_folder(glib::get_home_dir().unwrap());
dialog.connect_response(clone!(@strong builder => move |dialog, response| { dialog.connect_response(clone!(@strong builder, @strong dialog => move |_, response| {
if response == gtk::ResponseType::Accept { if response == gtk::ResponseType::Accept {
get_widget!(builder, gtk::Entry, project_path); get_widget!(builder, gtk::Entry, project_path);
...@@ -64,9 +64,9 @@ impl NewProjectDialog { ...@@ -64,9 +64,9 @@ impl NewProjectDialog {
project_path.set_text(&dest); project_path.set_text(&dest);
} }
dialog.destroy();
})); }));
dialog.show(); dialog.run();
})); }));
get_widget!(self.builder, gtk::Entry, project_name); get_widget!(self.builder, gtk::Entry, project_name);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment