En del opdateringer
This commit is contained in:
@@ -732,15 +732,19 @@ class PlaylistPanel(QWidget):
|
||||
if not current:
|
||||
dances = song.get("dances", [])
|
||||
current = dances[0] if dances else ""
|
||||
current_choreo = song.get("active_choreo", "")
|
||||
dlg = DancePickerDialog(
|
||||
current_dance=current,
|
||||
current_choreo=current_choreo,
|
||||
song_title=song.get("title", ""),
|
||||
parent=self.window()
|
||||
)
|
||||
if dlg.exec():
|
||||
chosen = dlg.get_dance()
|
||||
choreo = dlg.get_choreo()
|
||||
if chosen:
|
||||
song["active_dance"] = chosen
|
||||
song["active_dance"] = chosen
|
||||
song["active_choreo"] = choreo
|
||||
self._refresh()
|
||||
self._sync_dance_to_db(idx, song)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user