Skip to content

Commit

Permalink
fix: hide unused Lawo Ruby channels
Browse files Browse the repository at this point in the history
  • Loading branch information
mint-dewit committed Feb 2, 2021
1 parent 4be630b commit c7356cb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server/utils/mixerConnections/LawoRubyConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
storeChannelDisabled,
storeSetAMix,
storeCapability,
storeShowChannel,
} from '../../reducers/faderActions'
import { logger } from '../logger'
import { storeSetMixerOnline } from '../../reducers/settingsActions'
Expand Down Expand Up @@ -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)
)
}
}
}
Expand Down

0 comments on commit c7356cb

Please sign in to comment.