From 5a73eeb92023908648ad57467c9a342bd394730c Mon Sep 17 00:00:00 2001 From: The4codeblocks <72419529+The4codeblocks@users.noreply.github.com> Date: Mon, 4 May 2026 09:17:37 -0500 Subject: [PATCH] Prevent empty files being hidden as binary files Show empty files in the file explorer when binaries are hidden. New files created through the Xed file explorer are empty, thus they are hidden with default filtering settings. Fixes #712 --- plugins/filebrowser/xed-file-browser-store.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/filebrowser/xed-file-browser-store.c b/plugins/filebrowser/xed-file-browser-store.c index c104183d..c4916533 100644 --- a/plugins/filebrowser/xed-file-browser-store.c +++ b/plugins/filebrowser/xed-file-browser-store.c @@ -2119,7 +2119,8 @@ file_browser_node_set_from_info (XedFileBrowserStore *model, if (!content || g_content_type_is_unknown (content) || - g_content_type_is_a (content, "text/plain")) + g_content_type_is_a (content, "text/plain")) || + g_file_info_get_size (info) == 0 { node->flags |= XED_FILE_BROWSER_STORE_FLAG_IS_TEXT; }