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)
|
DEBUG(f"musicmuster.stop_playing({fade=})", True)
|
||||||
|
|
||||||
# Return if not playing
|
# Return if not playing
|
||||||
if not self.music.playing():
|
if not self.playing:
|
||||||
DEBUG("musicmuster.stop_playing(): not playing", True)
|
DEBUG("musicmuster.stop_playing(): not playing", True)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
@ -249,6 +249,7 @@ class PlaylistTab(QTableWidget):
|
|||||||
def closeEvent(self, event) -> None:
|
def closeEvent(self, event) -> None:
|
||||||
"""Save column widths"""
|
"""Save column widths"""
|
||||||
|
|
||||||
|
DEBUG(f"playlists.closeEvent()")
|
||||||
with Session() as session:
|
with Session() as session:
|
||||||
for column in range(self.columnCount()):
|
for column in range(self.columnCount()):
|
||||||
width = self.columnWidth(column)
|
width = self.columnWidth(column)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user