jean-emmanuel / open-stage-control

Libre and modular OSC / MIDI controller
https://openstagecontrol.ammd.net
GNU General Public License v3.0
701 stars 88 forks source link

[Bug]VAR syntax doesn't update default value. #721

Closed GeneralMidi closed 3 years ago

GeneralMidi commented 3 years ago

VAR syntax doesn't update default value.

vars don't update

edit: Also, cutting the text widget, then hitting undo also stops it updating. Have to then remove the VAR{}, enter random text, then re-add the VAR{}

And re-opening a session makes the text widget show nothing if it has VAR{} in its label.

jean-emmanuel commented 3 years ago

Fixed.

And re-opening a session makes the text widget show nothing if it has VAR{} in its label.

I could not reproduce that.

GeneralMidi commented 3 years ago

Actually, I just worked it out. It's when two widgets share the same ID but only one has a VAR{} syntax. I think you may have fixed this already though... text var.zip

jean-emmanuel commented 3 years ago

It's not related to the var syntax, it's just that the two widget's values are sync'ed and the last one that's created has an empty value.

GeneralMidi commented 3 years ago

Oh. Yes, that is then rather simple. Thank you. Feel free to close this.