mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-25 01:21:25 -04:00
In macOS, split "Add" button into "Add Files" and "Add Folder" buttons
This commit is contained in:
parent
63a02f4e81
commit
1ebb2dc796
4 changed files with 52 additions and 7 deletions
|
@ -44,6 +44,10 @@ class AddFileDialog(QtWidgets.QFileDialog):
|
|||
"""
|
||||
Overridden version of QFileDialog which allows us to select folders as well
|
||||
as, or instead of, files. For adding files/folders to share.
|
||||
|
||||
Note that this dialog can't be used in macOS, only in Windows, Linux, and BSD.
|
||||
This is because the macOS sandbox requires native dialogs, and this is a Qt5
|
||||
dialog.
|
||||
"""
|
||||
def __init__(self, common, *args, **kwargs):
|
||||
QtWidgets.QFileDialog.__init__(self, *args, **kwargs)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue