no longer try to file preview in a directory without files

This commit is contained in:
nova
2026-02-04 21:56:28 +01:00
parent 1d3b71b00f
commit 99ac76162f

View File

@@ -188,7 +188,7 @@ void *thread_rgt(){
rgt_content->file_type = 0; rgt_content->file_type = 0;
rgt_content->permissions = mid_content[selected_file_current].permissions; 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; unsigned long i = 0;
for (i = 0; i < rgt_file_count; i++) { for (i = 0; i < rgt_file_count; i++) {