long press latching buttons not working in trunk

Bug #1269408 reported by Owen Williams
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mixxx
Fix Released
High
RJ Skerry-Ryan

Bug Description

since the widget changes, pressing and holding the sync button does not keep the button lit, although sync mode is enabled

Revision history for this message
RJ Skerry-Ryan (rryan) wrote :

This is because of the way they are skinned in your Sync skin:

<Connection>
  <ConfigKey>[Channel1],sync_enabled</ConfigKey>
  <EmitOnPressAndRelease>true</EmitOnPressAndRelease>
  <ButtonState>LeftButton</ButtonState>
</Connection>
<Connection>
  <ConfigKey>[Channel1],beatsync_tempo</ConfigKey>
  <EmitOnPressAndRelease>true</EmitOnPressAndRelease>
  <ButtonState>RightButton</ButtonState>
</Connection>

Both of these connections are <ConnectValueToWidget> true because this is the default. The new logic for auto-selecting a display connection is that the last connection that is connected to the widget is the display connection. I guess we need something more complex.

Maybe it should be the last of any <LeftButton> or no button connection and if none exist, then the right button connection.

Changed in mixxx:
milestone: none → 1.12.0
status: New → Confirmed
Revision history for this message
Owen Williams (ywwg) wrote :

Since right button clicks are always alternative functionality, should those ever be the display connection?

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

For me the display connection should be always default to the first LeftButton connection if no Display connection is explicit set.
I can prepare a fix. I am planning to work on the Indicator in cdj today so I can fix that.
@RJ: OK?

Changed in mixxx:
assignee: nobody → Daniel Schürmann (daschuer)
importance: Undecided → High
Revision history for this message
RJ Skerry-Ryan (rryan) wrote :

@daschuer -- as we discussed before that would break hotcues.

I think the right behavior is:

1) The last of left or no-button connections that are connected to the widget.
2) If none exist, a right button connection if it is connected to the widget.

This supports Owen's sync button definition above and the hotcue buttons in all existing Mixxx skins. I'll fix this in master.

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

Fine, thank you.

Changed in mixxx:
assignee: Daniel Schürmann (daschuer) → RJ Ryan (rryan)
Revision history for this message
RJ Skerry-Ryan (rryan) wrote :
Changed in mixxx:
status: Confirmed → Fix Committed
Revision history for this message
Daniel Schürmann (daschuer) wrote :

Thank you!

RJ Skerry-Ryan (rryan)
Changed in mixxx:
status: Fix Committed → Fix Released
Revision history for this message
Swiftb0y (swiftb0y) wrote :

Mixxx now uses GitHub for bug tracking. This bug has been migrated to:
https://github.com/mixxxdj/mixxx/issues/7268

lock status: Metadata changes locked and limited to project staff
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.