switchers: send state through osc
This commit is contained in:
parent
bb10b6a44a
commit
29f80ae2bd
1 changed files with 4 additions and 1 deletions
|
|
@ -1,6 +1,8 @@
|
|||
var _widgets_base = require('../common/_widgets_base'),
|
||||
{widgetManager} = require('../../managers'),
|
||||
{stateSet} = require('../../actions')
|
||||
{stateSet} = require('../../actions'),
|
||||
osc = require('../../osc')
|
||||
|
||||
|
||||
module.exports = class _switchers_base extends _widgets_base {
|
||||
|
||||
|
|
@ -102,6 +104,7 @@ module.exports = class _switchers_base extends _widgets_base {
|
|||
}
|
||||
|
||||
if (options.sync) this.widget.trigger({type:'sync',id:this.widgetData.id,widget:this.widget, linkId:this.widgetData.linkId, options:options})
|
||||
if (options.send) this.sendValue()
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue