From 785f32acb37ad13fe69fd8a6ebaf4133598a62bc Mon Sep 17 00:00:00 2001 From: yohannd1 Date: Tue, 20 Jan 2026 19:20:29 -0300 Subject: [PATCH] use FileEntry::isDir field (my bad) --- src/gui/newFilePicker.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gui/newFilePicker.cpp b/src/gui/newFilePicker.cpp index 3890916fd..029d53d0f 100644 --- a/src/gui/newFilePicker.cpp +++ b/src/gui/newFilePicker.cpp @@ -620,9 +620,8 @@ void FurnaceFilePicker::updateEntryName() { entryName=_(""); } else if (chosenEntries.size() == 1) { FileEntry* entry=chosenEntries[0]; - bool isDir=entry->type==FP_TYPE_DIR; // only change the entry if the selection is valid - if ((isDir && dirSelect) || (!isDir && !dirSelect)) { + if ((entry->isDir && dirSelect) || (!entry->isDir && !dirSelect)) { entryName=entry->name; } }