Variable types change bug

Describe the bug

variable has type "string"
when using "Assign/Set Value for Variable" it will change value and (if needed) also the type from Text to Number.

but that is different if the variable is already a "number":

variable has type "number"
when using "Assign/Set Value for Variable" it will change only the value and the type stays as "string" ( bug ).

I would expect that it should also change type to "number".

I found the above as after several restarts of BTT the same variable is sometimes created as a string "btt-undefined" and sometimes as a (undefined) number like -96436436743763476 (which all fine, as undefined)
but
"Assign/Set Value for Variable" should allow change the "type" consistenly.


Screenshots


Device information:

  • Type of Mac: Apple M1 Max
  • macOS version: 14.7.5
  • BetterTouchTool version: 5.395

I have fixed that earlier today, next version should resolve various variable related issues