-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sidebar item selection fix #4193
Conversation
Remove unnecessary & conflicting code. Previously Up/Down key presses in the sidebar would NOT select the pevious/next playlist (Playlists, History) but make the selection jump to Tracks (and sometimes apply the key press after that).
Pull Request Test Coverage Report for Build 1128717031
💛 - Coveralls |
Any I'm puzzled that no one using |
26664cf
to
d80720d
Compare
d80720d
to
42d925a
Compare
I fixed another bug: after creating, deleting or renaming a playlist/crate the selection also jumps unexpedtedly. This is due to missing setCurrentIndex() in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After a manual test we can merge.
I'm adding another selection fix right now, see the TODO If you don't mind Iet's include that,too |
@uklotzde Please take a look at the last one. |
I can confirm that part 1 is fixed. I had trouble reproducing part 2 & 3 on main so I can't comment on those. |
@Swiftb0y I updated the 1st post with steps how to reproduce. Both keyboard and Library/Playlist controls are affected, except for part3 where the selection always jumps. |
I'm sorry, my controller seems to be broken right now so I have no way to test this anymore. |
Library, Move.../Playlist,Select... controls are just emulated key presses in the sidebar widget, so a keyboard is sufficient for testing. that's also how I noticed the bugs in the first place. |
Thanks, I thought these issues were only present when navigating via a controller because I had trouble reproducing part 2 and 3. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes confirmed to be working. Merge?
|
Uwe already approved this PR. I'll hit merge. |
That was before 185e373 got committed. |
Fixes some issues when navigating the sidebar with Up/Down keys,
[Library],Move...
,[Playlist],Select...
controls (emulated key presses)part1
fixes https://bugs.launchpad.net/mixxx/+bug/1939082
Keys can NOT select the pevious/next playlist (Playlists, History) but make the selection jump to Tracks (and sometimes apply the key press after that).
Looks like #2996 added the redundant and failing code (git bisect points to a8a93f0),
though I didn't trace what exactly causes the fail(redundant sidebar item activation with invalid index)En passant I added some debug assertions.
part 2
After creating a playlist/crate Up/Down keys would make the selection jump to the Tracks.
Fixed by adding
setCurrentIndex()
toWLibrarySidebar::selectIndex
andWLibrarySidebar::selectChildIndex
.edit also prevents the jump when moving away from active external features' root item (Serato, Rekordbox ...)
part 3
Remove a crate and the selection jumps to the Crates root item.
Fix: Like with playlists, before deleting a crate, store its neighbour's Id to somewhat restore the selection afterwards, or rather scroll position.