widgets: regression incurring a small delay before resolving a property that depends on a widget's own value (see fe682693b1)

This commit is contained in:
jean-emmanuel 2023-04-14 19:40:32 +02:00
parent 22927983b8
commit 0e54c11f13
2 changed files with 2 additions and 1 deletions

View file

@ -4,6 +4,7 @@
- bug fixes
- launcher: `Ctrl+M` keyboard shortcut not working
- widgets: regression incurring a small delay before resolving a property that depends on a widget's own value
- advanced syntaxes
- support `@{}` inside `IMPORT{}`

View file

@ -489,7 +489,7 @@ class Widget extends EventEmitter {
if (!this.linkedValueChangedCallback && Object.keys(this.linkedPropsValue).length) {
this.linkedValueChangedCallback = (e)=>{
if (this.isValueChanging) {
if (this.isValueChanging && e.widget !== this) {
clearTimeout(this.valueChangingTimeout)
this.valueChangingTimeout = setTimeout(()=>{
if (!this.removed) this.onLinkedPropsChanged(e, 'value-changed')