Avoid g_app_info_should_show() in context menus
We were hiding our own JPEG cropper.
This commit is contained in:
parent
d9435c988c
commit
41bd25e711
@ -792,8 +792,7 @@ make_context_menu(GtkWidget *widget, GFile *file)
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (GList *iter = recommended; iter; iter = iter->next) {
|
for (GList *iter = recommended; iter; iter = iter->next) {
|
||||||
if (g_app_info_should_show(iter->data) &&
|
if (!default_ || !g_app_info_equal(iter->data, default_))
|
||||||
(!default_ || !g_app_info_equal(iter->data, default_)))
|
|
||||||
append_opener(menu, iter->data, ctx);
|
append_opener(menu, iter->data, ctx);
|
||||||
else
|
else
|
||||||
g_object_unref(iter->data);
|
g_object_unref(iter->data);
|
||||||
@ -805,8 +804,7 @@ make_context_menu(GtkWidget *widget, GFile *file)
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (GList *iter = fallback; iter; iter = iter->next) {
|
for (GList *iter = fallback; iter; iter = iter->next) {
|
||||||
if (g_app_info_should_show(iter->data) &&
|
if (!default_ || !g_app_info_equal(iter->data, default_))
|
||||||
(!default_ || !g_app_info_equal(iter->data, default_)))
|
|
||||||
append_opener(menu, iter->data, ctx);
|
append_opener(menu, iter->data, ctx);
|
||||||
else
|
else
|
||||||
g_object_unref(iter->data);
|
g_object_unref(iter->data);
|
||||||
|
Loading…
Reference in New Issue
Block a user