From 41bd25e7115d0d2ece922ed0db35f64ef61aaede Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch
Date: Mon, 21 Feb 2022 21:48:41 +0100 Subject: Avoid g_app_info_should_show() in context menus We were hiding our own JPEG cropper. --- fiv-browser.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/fiv-browser.c b/fiv-browser.c index 7938ac6..1d67e4c 100644 --- a/fiv-browser.c +++ b/fiv-browser.c @@ -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); -- cgit v1.2.3-70-g09d2