Fixed bug that crashed app if playing from second page

This commit is contained in:
BarsTiger
2022-11-26 18:48:19 +02:00
parent 7ccd3f6f24
commit 148bb31ec0

View File

@@ -54,7 +54,7 @@ def fill_pads(ui: Ui_MainWindow, MainWindow: QMainWindow, p: Player):
button.clicked.connect( button.clicked.connect(
( (
lambda: ( lambda: (
p.set_media(ui.first_pads_dict[MainWindow.sender().text()]), p.set_media(ui.second_pads_dict[MainWindow.sender().text()]),
p.play(ui) p.play(ui)
) if MainWindow.sender().text() != "File doesn't exist" else None ) if MainWindow.sender().text() != "File doesn't exist" else None
) )