File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -59,14 +59,13 @@ export function createControlActions(self: InstanceBaseExt<WingConfig>): Compani
5959 send ( ControlCommands . LibrarySceneSelectionIndex ( ) , sceneId )
6060 send ( ControlCommands . LibraryAction ( ) , 'GO' )
6161 } ,
62- subscribe : ( ) => {
63- subscriptions . subscribePoll ( ControlCommands . LibraryScenes ( ) )
62+ subscribe : ( event ) => {
63+ if ( event . options . useSceneId == false ) {
64+ subscriptions . subscribePoll ( ControlCommands . LibraryScenes ( ) )
65+ }
6466 ensureLoaded ( ControlCommands . LibraryActiveSceneIndex ( ) )
6567 ensureLoaded ( ControlCommands . LibraryNode ( ) , '?' )
6668 } ,
67- unsubscribe : ( ) => {
68- subscriptions . unsubscribePoll ( ControlCommands . LibraryScenes ( ) )
69- } ,
7069 learn : ( event ) => {
7170 const sceneIdMap = state . sceneNameToIdMap
7271 const cmd = ControlCommands . LibraryActiveSceneIndex ( )
You can’t perform that action at this time.
0 commit comments