mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-05-04 04:52:33 +12:00
Use native look for the import FileDialog
It is the only FileDialog in the entire codebase that does not conform to the rest of the OS like its brethren, and it stuck out like a sore thumb because of it.
This commit is contained in:
parent
c2dce6e0c6
commit
bcf749d165
|
@ -122,9 +122,8 @@ class importerDialog(QWidget, Ui_importer):
|
|||
F = self._format
|
||||
|
||||
options = QFileDialog.Options()
|
||||
options |= QFileDialog.DontUseNativeDialog
|
||||
if F.fileFormat == "<<folder>>":
|
||||
options = QFileDialog.DontUseNativeDialog | QFileDialog.ShowDirsOnly
|
||||
options = QFileDialog.ShowDirsOnly
|
||||
fileName = QFileDialog.getExistingDirectory(self, "Select import folder",
|
||||
"", options=options)
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue