Merge branch 'feat-hiddenfiles' of https://github.com/jpirnay/crosspoint-reader into mybuild

This commit is contained in:
jpirnay committed 2026-03-08 09:56:47 +01:00
commit 8688139a71
4 files changed
+6 -2

No files matched your search

+2 -1
View File
@@ -10,6 +10,7 @@
#include "../util/ConfirmationActivity.h"
#include "BookInfoActivity.h"
#include "CrossPointSettings.h"
#include "MappedInputManager.h"
#include "components/UITheme.h"
#include "fontIds.h"
@@ -84,7 +85,7 @@ void FileBrowserActivity::loadFiles() {
char name[500];
for (auto file = root.openNextFile(); file; file = root.openNextFile()) {
file.getName(name, sizeof(name));
if (name[0] == '.' || strcmp(name, "System Volume Information") == 0) {
if ((!SETTINGS.showHiddenFiles && name[0] == '.') || strcmp(name, "System Volume Information") == 0) {
file.close();
continue;
}