aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2022-02-21 21:48:41 +0100
committerPřemysl Eric Janouch <p@janouch.name>2022-02-21 21:49:44 +0100
commit41bd25e7115d0d2ece922ed0db35f64ef61aaede (patch)
tree872e2fd16bde38060a9d462b35e07392b8d53a3c
parentd9435c988c2861dc7687aff81e6d1b7212a5bc40 (diff)
downloadfiv-41bd25e7115d0d2ece922ed0db35f64ef61aaede.tar.gz
fiv-41bd25e7115d0d2ece922ed0db35f64ef61aaede.tar.xz
fiv-41bd25e7115d0d2ece922ed0db35f64ef61aaede.zip
Avoid g_app_info_should_show() in context menus
We were hiding our own JPEG cropper.
-rw-r--r--fiv-browser.c6
1 files 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);