Skip to content

Commit a064ee9

Browse files
committed
Auto DJ: don't try to reenable when orientation changes
Signed-off-by: Owen Williams <owilliams@mixxx.org>
1 parent efb6e75 commit a064ee9

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

src/library/autodj/autodjprocessor.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1699,10 +1699,9 @@ void AutoDJProcessor::playerOrientationChanged(DeckAttributes* pAttributes) {
16991699
}
17001700

17011701
if (m_eState != ADJ_DISABLED) {
1702-
// Disable and Enable auto DJ. We will likely fail to enable auto DJ
1703-
// but that will pop up an error to explain the situation to the user.
1702+
// Disable auto DJ and emit the error explaining that we no longer have two valid decks.
17041703
toggleAutoDJ(false);
1705-
toggleAutoDJ(true);
1704+
emit autoDJError(ADJ_NOT_TWO_DECKS);
17061705
}
17071706
}
17081707

src/library/autodj/autodjprocessor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ class AutoDJProcessor : public QObject {
162162
ADJ_QUEUE_EMPTY,
163163
ADJ_BOTH_DECKS_PLAYING,
164164
ADJ_UNUSED_DECK_PLAYING,
165-
ADJ_NOT_TWO_DECKS
165+
ADJ_NOT_TWO_DECKS,
166166
};
167167

168168
enum class TransitionMode {

0 commit comments

Comments
 (0)