button.script: fix nasty bug where old value script may be called upon modification validated with a click on the button

This commit is contained in:
jean-emmanuel 2022-01-08 01:33:34 +01:00
parent 58af556065
commit 52ecafd04b

View file

@ -1182,6 +1182,7 @@ class Widget extends EventEmitter {
}
this.removed = true
this.off('change')
widgetManager.off(undefined, undefined, this)
this.removeOscReceivers()