Pamhyr: Disable native file dialog.

This commit is contained in:
Pierre-Antoine Rouby committed 2024-05-22 15:56:45 +02:00
1 parent e45eb3fd69
commit 50686e1b65
2 files changed
+13 -3

No files matched your search

+4 -1
View File
@@ -102,7 +102,10 @@ class WindowToolKit(object):
Returns:
The returns of callback
"""
dialog = QFileDialog(self)
options = QFileDialog.Options()
options |= QFileDialog.DontUseNativeDialog
dialog = QFileDialog(self, options=options)
if select_file:
mode = QFileDialog.FileMode.ExistingFile