From 99ac76162f1ba7412418e99ad640968f726f8bed Mon Sep 17 00:00:00 2001 From: nova Date: Wed, 4 Feb 2026 21:56:28 +0100 Subject: [PATCH] no longer try to file preview in a directory without files --- threading.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/threading.c b/threading.c index acd8ee7..6788e4e 100644 --- a/threading.c +++ b/threading.c @@ -188,7 +188,7 @@ void *thread_rgt(){ rgt_content->file_type = 0; rgt_content->permissions = mid_content[selected_file_current].permissions; } - } else if ((status & STATUS_DELTA_TIME) != STATUS_DELTA_TIME) { + } else if ((status & STATUS_DELTA_TIME) != STATUS_DELTA_TIME && mid_file_count > 0) { unsigned long i = 0; for (i = 0; i < rgt_file_count; i++) {