Comment 2 for bug 1376277

Revision history for this message
Daniel Schürmann (daschuer) wrote :

Can you explain you use case a bit more?

Do you need it for something like this:

<Connection>
  <ConfigKey>[Master],num_decks</ConfigKey>
  <Transform>
    <lessthan>4</lessthan>
  </Transform>
  <BindProperty>visible</BindProperty>
</Connection>

The same could be achieved by

<Connection>
  <ConfigKey>[Master],num_decks</ConfigKey>
  <Transform>
    <Invert/>
    <Add>4</Add>
  </Transform>
  <BindProperty>visible</BindProperty>
</Connection>

if we change the property conversion
to
if (value > 0 ) {
    visible = true;
}
Around here:
https://github.com/mixxxdj/mixxx/blob/38dcd763c2ffc46e6958ca687a8a83e928059c4d/src/widget/controlwidgetconnection.cpp#L124