Allow adding more than one file at a time
This commit is contained in:
parent
0ca9bfec0a
commit
ec760ca0d4
@ -64,7 +64,7 @@ class Window(QMainWindow, Ui_MainWindow):
|
||||
|
||||
def add_file(self):
|
||||
dlg = QFileDialog()
|
||||
dlg.setFileMode(QFileDialog.ExistingFile)
|
||||
dlg.setFileMode(QFileDialog.ExistingFiles)
|
||||
dlg.setViewMode(QFileDialog.Detail)
|
||||
dlg.setDirectory(Config.ROOT)
|
||||
dlg.setNameFilter("Music files (*.flac *.mp3)")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user