Skip to content

Commit 5eb58c0

Browse files
committed
fix: match file dialog filters case insensitively
1 parent cad5290 commit 5eb58c0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

components/filedialog/FileDialog.qml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ LazyLoader {
3737

3838
readonly property bool selectionValid: {
3939
const file = folderContents.currentItem?.modelData;
40-
return (file && !file.isDir && (filters.includes("*") || filters.includes(file.suffix))) ?? false;
40+
const suffix = file?.suffix.toLowerCase();
41+
return (file && !file.isDir && (filters.includes("*") || filters.some(f => f.toLowerCase() === suffix))) ?? false;
4142
}
4243

4344
function accepted(path: string): void {

0 commit comments

Comments
 (0)