Fixed bug that crashed app if playing from second page
This commit is contained in:
@@ -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
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user