From 7401cde4a6d684daf8730ab9670c1101433857ed Mon Sep 17 00:00:00 2001 From: Matthew Stratford Date: Thu, 13 Apr 2023 23:07:27 +0100 Subject: [PATCH] Stop preview channel from auto advancing. --- src/showplanner/Player.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/showplanner/Player.tsx b/src/showplanner/Player.tsx index c5f1122..b480ca7 100644 --- a/src/showplanner/Player.tsx +++ b/src/showplanner/Player.tsx @@ -383,6 +383,11 @@ export function Player({ id }: { id: number }) { if (id < PLAYER_COUNT) { return ("player-" + id) as LevelsSource; } + // We don't want the Preview channel doing anything silly, overwrite default player settings. + if (isPreviewChannel) { + dispatch(MixerState.setAutoAdvance({ player: id, enabled: false })); + } + throw new Error("Unknown Player VUMeter source: " + id); };