Skip to content

Commit 43285a1

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 43285a1

1 file changed

Lines changed: 2 additions & 3 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

0 commit comments

Comments
 (0)