mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 22:20:24 +00:00
appchooserwidget: Don't limit application list unconditionally
As documented, GtkAppChooser is "typically [used] for the purpose of opening a file". However given that applications that support neither opening files nor URLs are filtered out, the chooser is not actual useful for any other (atypical) usage. Change that by only applying the filtering if a content-type was set, and use the full unfiltered list otherwise. https://bugzilla.gnome.org/show_bug.cgi?id=789327
This commit is contained in:
parent
29d1cc2fcd
commit
07beb6dba2
@ -563,7 +563,8 @@ gtk_app_chooser_widget_add_section (GtkAppChooserWidget *self,
|
||||
{
|
||||
app = l->data;
|
||||
|
||||
if (!g_app_info_supports_uris (app) &&
|
||||
if (self->priv->content_type != NULL &&
|
||||
!g_app_info_supports_uris (app) &&
|
||||
!g_app_info_supports_files (app))
|
||||
continue;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user