Skip to content

Commit

Permalink
AutoDJ feature: remove redundant GUI updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ronso0 committed May 2, 2023
1 parent dc3bede commit 216a080
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/library/autodj/dlgautodj.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -287,22 +287,18 @@ void DlgAutoDJ::autoDJError(AutoDJProcessor::AutoDJError error) {
tr("Auto DJ"),
tr("Auto DJ requires two decks assigned to opposite sides of the crossfader."),
QMessageBox::Ok);
// Make sure the button becomes unpushed.
pushButtonAutoDJ->setChecked(false);
break;
case AutoDJProcessor::ADJ_BOTH_DECKS_PLAYING:
QMessageBox::warning(nullptr,
tr("Auto DJ"),
tr("One deck must be stopped to enable Auto DJ mode."),
QMessageBox::Ok);
pushButtonAutoDJ->setChecked(false);
break;
case AutoDJProcessor::ADJ_DECKS_3_4_PLAYING:
QMessageBox::warning(nullptr,
tr("Auto DJ"),
tr("Decks 3 and 4 must be stopped to enable Auto DJ mode."),
QMessageBox::Ok);
pushButtonAutoDJ->setChecked(false);
break;
case AutoDJProcessor::ADJ_OK:
default:
Expand Down

0 comments on commit 216a080

Please sign in to comment.