1
0
Fork 0
mirror of https://github.com/borgbase/vorta synced 2024-12-22 15:57:34 +00:00

minor change

This commit is contained in:
Sam 2024-04-08 18:40:10 +05:30
parent 5ae4527ae2
commit 28d6034800

View file

@ -19,8 +19,8 @@
QAbstractItemView, QAbstractItemView,
QApplication, QApplication,
QFileDialog, QFileDialog,
QListView,
QSystemTrayIcon, QSystemTrayIcon,
QTreeView,
) )
from vorta.borg._compatibility import BorgCompatibility from vorta.borg._compatibility import BorgCompatibility
@ -178,7 +178,8 @@ def choose_file_dialog(parent, title, want_folder=True):
dialog.setParent(parent, QtCore.Qt.WindowType.Sheet) dialog.setParent(parent, QtCore.Qt.WindowType.Sheet)
if want_folder: if want_folder:
dialog.setOption(QFileDialog.Option.ShowDirsOnly) dialog.setOption(QFileDialog.Option.ShowDirsOnly)
list_view = dialog.findChild(QTreeView) list_view = dialog.findChild(QListView)
if list_view:
list_view.setSelectionMode(QAbstractItemView.SelectionMode.MultiSelection) list_view.setSelectionMode(QAbstractItemView.SelectionMode.MultiSelection)
return dialog return dialog