use FileEntry::isDir field (my bad)

This commit is contained in:
yohannd1 2026-01-20 19:20:29 -03:00 committed by tildearrow
parent d70fc3c5c2
commit 785f32acb3

View file

@ -620,9 +620,8 @@ void FurnaceFilePicker::updateEntryName() {
entryName=_("<multiple files selected>");
} 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;
}
}