提交 3f55ab1a 编写于 作者: C Corentin Jemine

Fixed wrong filter for file browser

上级 f41915c5
......@@ -101,6 +101,8 @@ class Toolbox:
# Select the next utterance
if self.ui.auto_next_checkbox.isChecked():
self.ui.browser_select_next()
elif fpath == "":
return
else:
name = fpath.name
speaker_name = fpath.parent.name
......
......@@ -186,9 +186,9 @@ class UI(QDialog):
fpath = QFileDialog().getOpenFileName(
parent=self,
caption="Select an audio file",
filter="*.mp3;*.flac;*.wav;*.m4a"
filter="Audio Files (*.mp3 *.flac *.wav *.m4a)"
)
return Path(fpath[0]) if fpath[0] != "" else None
return Path(fpath[0]) if fpath[0] != "" else ""
@staticmethod
def repopulate_box(box, items, random=False):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册