Detect music playing better
This commit is contained in:
parent
fe660524a0
commit
558a283e73
@ -670,7 +670,7 @@ class Window(QMainWindow, Ui_MainWindow):
|
||||
DEBUG(f"musicmuster.stop_playing({fade=})", True)
|
||||
|
||||
# Return if not playing
|
||||
if not self.music.playing():
|
||||
if not self.playing:
|
||||
DEBUG("musicmuster.stop_playing(): not playing", True)
|
||||
return
|
||||
|
||||
|
||||
@ -249,6 +249,7 @@ class PlaylistTab(QTableWidget):
|
||||
def closeEvent(self, event) -> None:
|
||||
"""Save column widths"""
|
||||
|
||||
DEBUG(f"playlists.closeEvent()")
|
||||
with Session() as session:
|
||||
for column in range(self.columnCount()):
|
||||
width = self.columnWidth(column)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user