mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Use portable filter to match all files in getFile (#1943)
`*.*` matches files with no extensions on Windows, while it doesn't do so on macOS. Reference: https://doc.qt.io/qt-6/qfiledialog.html#setNameFilters
This commit is contained in:
parent
1e8ea0cade
commit
fe302a5d1b
1 changed files with 1 additions and 1 deletions
|
@ -430,7 +430,7 @@ def getFile(
|
|||
title: str,
|
||||
# single file returned unless multi=True
|
||||
cb: Callable[[str | Sequence[str]], None] | None,
|
||||
filter: str = "*.*",
|
||||
filter: str = "*",
|
||||
dir: str | None = None,
|
||||
key: str | None = None,
|
||||
multi: bool = False, # controls whether a single or multiple files is returned
|
||||
|
|
Loading…
Reference in a new issue