mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-06-17 08:47:49 +00:00
fix(filepicker_ls): use case insensitive matching for file exts (#585)
This commit is contained in:
committed by
GitHub
parent
2500b748ce
commit
435dfa7884
@@ -238,7 +238,7 @@ class Utilities:
|
|||||||
elif include_files:
|
elif include_files:
|
||||||
# Handle requested extensions if present
|
# Handle requested extensions if present
|
||||||
if len(include_ext) == 0 or 'all_files' in include_ext \
|
if len(include_ext) == 0 or 'all_files' in include_ext \
|
||||||
or splitext(file.name)[1].lstrip('.') in include_ext:
|
or splitext(file.name)[1].lstrip('.').upper() in (ext.upper() for ext in include_ext):
|
||||||
if (is_hidden and include_hidden) or not is_hidden:
|
if (is_hidden and include_hidden) or not is_hidden:
|
||||||
files.append({"file": file, "filest": filest, "is_dir": False})
|
files.append({"file": file, "filest": filest, "is_dir": False})
|
||||||
# Filter logic
|
# Filter logic
|
||||||
|
|||||||
Reference in New Issue
Block a user