v0.63.1: nothing starts the main player in DJ mode; sync always clickable

Return or a double-click on a song started the regular player behind the
decks, with its controls greyed out and no way to stop it. DJ mode now
suspends the player. Sync to other track was only re-enabled when its own
deck changed, so loading the other deck afterwards left it grey; it's now
enabled whenever its deck has a song and explains what it can't do.
This commit is contained in:
2026-10-17 02:19:02 -07:00
parent 57cc5d5289
commit 8298450814
6 changed files with 91 additions and 12 deletions
+2 -2
View File
@@ -2315,8 +2315,7 @@ class MainWindow(QMainWindow):
from lintunes.gui import track_table
if on:
shelf = self._ensure_dj()
if self.player.is_playing():
self.player.pause()
self.player.set_suspended(True) # pauses it, and keeps it so
target = self._dj_target_height()
self._transport.set_dj_mode(True, self._dj_titles())
track_table.deck_tag = self._deck_tag
@@ -2397,6 +2396,7 @@ class MainWindow(QMainWindow):
return # reopened mid-close
self._dj.stop()
self._dj.hide()
self.player.set_suspended(False)
self._transport.set_dj_mode(False)
def _on_dj_resize(self, dy: int):