Skip to content

Commit

Permalink
Disable station mode selection for QuickMix
Browse files Browse the repository at this point in the history
It does not have any modes anyway.

Fixes #723.
  • Loading branch information
PromyLOPh committed Dec 11, 2021
1 parent 88b3fde commit 6b91489
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/ui_act.c
Original file line number Diff line number Diff line change
Expand Up @@ -814,15 +814,22 @@ BarUiActCallback(BarUiActManageStation) {
strcat (question, "[f]eedback");
*allowedPos++ = 'f';
}
/* station mode is always available */
if (allowedPos != allowedActions) {
strcat (question, "? ");
}
strcat (question, "Manage [m]ode? ");
*allowedPos++ = 'm';
/* station mode is not available for QuickMix. */
if (!selStation->isQuickMix) {
strcat (question, "Manage [m]ode? ");
*allowedPos++ = 'm';
}

*allowedPos = '\0';

if (allowedPos == allowedActions) {
BarUiMsg (&app->settings, MSG_INFO, "No actions available.\n");
return;
}

assert (strlen (question) < sizeof (question) / sizeof (*question));

BarUiMsg (&app->settings, MSG_QUESTION, "%s", question);
Expand Down

0 comments on commit 6b91489

Please sign in to comment.