import_dialog: Do not show hidden files in the FileChooser.

This commit is contained in:
Jordan Petridis 2018-05-13 00:17:08 +03:00
parent b95e70a8c4
commit 97eef9149c
No known key found for this signature in database
GPG Key ID: CEABAD9F5683B9A6

View File

@ -246,6 +246,9 @@ fn on_import_clicked(window: &gtk::Window, sender: &Sender<Action>) {
],
);
// Do not show hidden(.thing) files
dialog.set_show_hidden(false);
// Set a filter to show only xml files
let filter = FileFilter::new();
FileFilterExt::set_name(&filter, Some("OPML file"));