Skip to content

Commit

Permalink
AutoDJ: reset of UI toggle if enable is rejected due to playing decks…
Browse files Browse the repository at this point in the history
… 3/4
  • Loading branch information
ronso0 committed Mar 17, 2024
1 parent e2d4199 commit 2673ddc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/library/autodj/autodjprocessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@ AutoDJProcessor::AutoDJError AutoDJProcessor::toggleAutoDJ(bool enable) {
for (int i = 2; i < m_decks.length(); ++i) {
if (m_decks[i] && m_decks[i]->isPlaying()) {
// Keep the current state.
emitAutoDJStateChanged(m_eState);
emit autoDJError(ADJ_DECKS_3_4_PLAYING);
return ADJ_DECKS_3_4_PLAYING;
}
Expand Down

0 comments on commit 2673ddc

Please sign in to comment.