mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-06-13 12:15:09 +03:00
fix(filepicker_ls): use case insensitive matching for file exts (#585)
This commit is contained in:
committed by
AAGaming
parent
8987076c5f
commit
ecd8ef5998
@@ -228,7 +228,7 @@ class Utilities:
|
||||
elif include_files:
|
||||
# Handle requested extensions if present
|
||||
if include_ext == None or 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:
|
||||
files.append({"file": file, "filest": filest, "is_dir": False})
|
||||
# Filter logic
|
||||
|
||||
Reference in New Issue
Block a user