Detect music playing better

This commit is contained in:
Keith Edmunds 2022-04-05 21:03:28 +01:00
parent fe660524a0
commit 558a283e73
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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)