[gnome-boxes/enable-boot-from-mount: 1/2] assistant: Allow selecting folders
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/enable-boot-from-mount: 1/2] assistant: Allow selecting folders
- Date: Tue, 20 Oct 2020 15:01:37 +0000 (UTC)
commit 7a05f8c4e1ec247d7367760c77a467e4dd48437f
Author: Felipe Borges <felipeborges gnome org>
Date: Tue Oct 20 16:35:23 2020 +0200
assistant: Allow selecting folders
This is necessary for booting from mount points.
See #481
src/assistant/index-page.vala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/assistant/index-page.vala b/src/assistant/index-page.vala
index da020754..813cb575 100644
--- a/src/assistant/index-page.vala
+++ b/src/assistant/index-page.vala
@@ -142,7 +142,7 @@ public override void cleanup () {
private async void on_select_file_button_clicked () {
var file_chooser = new Gtk.FileChooserNative (_("Select a device or ISO file"),
App.app.main_window,
- Gtk.FileChooserAction.OPEN,
+ Gtk.FileChooserAction.OPEN |
Gtk.FileChooserAction.SELECT_FOLDER,
_("Open"), _("Cancel"));
file_chooser.bind_property ("visible", dialog, "visible", BindingFlags.INVERT_BOOLEAN);
if (file_chooser.run () == Gtk.ResponseType.ACCEPT) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]