summaryrefslogtreecommitdiff
path: root/src/library
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2022-10-02 20:33:39 +0200
committerJörg Frings-Fürst <debian@jff.email>2022-10-02 20:33:39 +0200
commitac6e0b731b9f0b2efd392e3309a5c07e2a66adad (patch)
treed3225c4f583bbc2dd2d4d1270599bdc91d6bbb57 /src/library
parentbeb8b0dad71871aa66b63901b3e6b6c047e1a646 (diff)
parent133064a8fce1a02e83874295ab20ab1dee304777 (diff)
Merge branch 'release/debian/0.30.17-1'debian/0.30.17-1
Diffstat (limited to 'src/library')
-rw-r--r--src/library/LibraryWindow.vala7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/library/LibraryWindow.vala b/src/library/LibraryWindow.vala
index 3aa397e..53b3a7b 100644
--- a/src/library/LibraryWindow.vala
+++ b/src/library/LibraryWindow.vala
@@ -516,9 +516,8 @@ public class LibraryWindow : AppWindow {
}
private void on_file_import() {
- Gtk.FileChooserDialog import_dialog = new Gtk.FileChooserDialog(_("Import From Folder"), null,
- Gtk.FileChooserAction.SELECT_FOLDER, Resources.CANCEL_LABEL, Gtk.ResponseType.CANCEL,
- Resources.OK_LABEL, Gtk.ResponseType.OK);
+ var import_dialog = new Gtk.FileChooserNative(_("Import From Folder"), null,
+ Gtk.FileChooserAction.SELECT_FOLDER, Resources.OK_LABEL, Resources.CANCEL_LABEL);
import_dialog.set_local_only(false);
import_dialog.set_select_multiple(true);
import_dialog.set_current_folder(import_dir);
@@ -529,7 +528,7 @@ public class LibraryWindow : AppWindow {
int response = import_dialog.run();
- if (response == Gtk.ResponseType.OK) {
+ if (response == Gtk.ResponseType.ACCEPT) {
import_dialog.hide();
// force file linking if directory is inside current library directory
Gtk.ResponseType copy_files_response =