Avoid g_app_info_should_show() in context menus

We were hiding our own JPEG cropper.
This commit is contained in:
Přemysl Eric Janouch 2022-02-21 21:48:41 +01:00
parent d9435c988c
commit 41bd25e711
Signed by: p
GPG Key ID: A0420B94F92B9493

View File

@ -792,8 +792,7 @@ make_context_menu(GtkWidget *widget, GFile *file)
}
for (GList *iter = recommended; iter; iter = iter->next) {
if (g_app_info_should_show(iter->data) &&
(!default_ || !g_app_info_equal(iter->data, default_)))
if (!default_ || !g_app_info_equal(iter->data, default_))
append_opener(menu, iter->data, ctx);
else
g_object_unref(iter->data);
@ -805,8 +804,7 @@ make_context_menu(GtkWidget *widget, GFile *file)
}
for (GList *iter = fallback; iter; iter = iter->next) {
if (g_app_info_should_show(iter->data) &&
(!default_ || !g_app_info_equal(iter->data, default_)))
if (!default_ || !g_app_info_equal(iter->data, default_))
append_opener(menu, iter->data, ctx);
else
g_object_unref(iter->data);