forked from trav/lintunes
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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user