diff options
author | Matthias Clasen <mclasen@redhat.com> | 2022-11-17 15:51:11 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2022-11-17 15:52:53 -0500 |
commit | b0148972fdeb03765f73ade8ffa0b4be4bfb35ef (patch) | |
tree | bcdf59b5f51ee1e343a32ea5ea765783ebbf9877 /gtk/gtkfilechoosernativeportal.c | |
parent | 793954055ee57730d6ba09496a9d4b1f4604d04c (diff) | |
download | gtk+-b0148972fdeb03765f73ade8ffa0b4be4bfb35ef.tar.gz |
filedialog: Use portals
We want this new API to be portal-first.
Make it so.
Diffstat (limited to 'gtk/gtkfilechoosernativeportal.c')
-rw-r--r-- | gtk/gtkfilechoosernativeportal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkfilechoosernativeportal.c b/gtk/gtkfilechoosernativeportal.c index 530e63cff0..8c5903ce30 100644 --- a/gtk/gtkfilechoosernativeportal.c +++ b/gtk/gtkfilechoosernativeportal.c @@ -468,7 +468,7 @@ gtk_file_chooser_native_portal_show (GtkFileChooserNative *self, GtkFileChooserAction action; const char *method_name; - if (!gdk_should_use_portal ()) + if (!self->use_portal && !gdk_should_use_portal ()) return FALSE; connection = g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, NULL); |