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 PromyLOPh#723.
  • Loading branch information
PromyLOPh authored and thedmd committed Apr 16, 2022
1 parent 9f628a9 commit 5a861ea
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 @@ -784,15 +784,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 5a861ea

Please sign in to comment.