From bfec926e600edec83071284e230144a40d92326d Mon Sep 17 00:00:00 2001 From: Relintai Date: Sat, 5 Feb 2022 14:00:07 +0100 Subject: [PATCH] Re-enabled skip specials logic in Directory. --- core/os/directory.cpp | 8 +++----- modules/paged_article/paged_articles.cpp | 4 ---- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/core/os/directory.cpp b/core/os/directory.cpp index 23e3e9f..2375462 100644 --- a/core/os/directory.cpp +++ b/core/os/directory.cpp @@ -69,11 +69,9 @@ bool Directory::next() { tinydir_next(&_dir); } - // if (_skip_specials && current_is_dir() && current_is_special_dir()) { - // return next(); - // } - - // tinydir_next(&_dir); + if (_skip_specials && current_is_dir() && current_is_special_dir()) { + return next(); + } return true; } diff --git a/modules/paged_article/paged_articles.cpp b/modules/paged_article/paged_articles.cpp index 7e5fea0..b5132a6 100644 --- a/modules/paged_article/paged_articles.cpp +++ b/modules/paged_article/paged_articles.cpp @@ -31,10 +31,6 @@ void PagedArticles::load() { while (dir->next()) { if (dir->current_is_dir()) { - if (dir->current_is_special_dir()) { - continue; - } - String np = dir->current_get_path(); String fn = dir->current_get_name();