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:
Abdo 2022-07-04 02:33:20 +03:00 committed by GitHub
parent 7a7cb55771
commit a0ded69d3a

View file

@ -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