From c7356cb618ecfa4ed5a25958bb6db55eb42b3c0c Mon Sep 17 00:00:00 2001 From: Balte de Wit Date: Tue, 2 Feb 2021 13:59:22 +0100 Subject: [PATCH] fix: hide unused Lawo Ruby channels --- server/utils/mixerConnections/LawoRubyConnection.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/utils/mixerConnections/LawoRubyConnection.ts b/server/utils/mixerConnections/LawoRubyConnection.ts index aa54393e..3c1518c2 100644 --- a/server/utils/mixerConnections/LawoRubyConnection.ts +++ b/server/utils/mixerConnections/LawoRubyConnection.ts @@ -15,6 +15,7 @@ import { storeChannelDisabled, storeSetAMix, storeCapability, + storeShowChannel, } from '../../reducers/faderActions' import { logger } from '../logger' import { storeSetMixerOnline } from '../../reducers/settingsActions' @@ -161,12 +162,16 @@ export class LawoRubyMixerConnection { store.dispatch( storeChannelDisabled(channelTypeIndex, false) ) + store.dispatch(storeShowChannel(channelTypeIndex, true)) } else { // disable store.dispatch( storeChannelDisabled(channelTypeIndex, true) ) store.dispatch(storeFaderLabel(channelTypeIndex, '')) + store.dispatch( + storeShowChannel(channelTypeIndex, false) + ) } } }