mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Pamhyr: Disable native file dialog.
This commit is contained in:
1 parent
e45eb3fd69
commit
50686e1b65
2 files changed
+13
-3
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user