Skip to content
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

UI: Add UUID to file-based list widgets to uniquely identify items #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

CodeYan01
Copy link
Owner

List widgets are currently used as playlists in source properties, but only contain the file paths and no other identifying information.

This can lead to files being added multiple times, so when changes to list order occurs, plugins cannot uniquely identify which duplicate item was actually changed (because they're only identified by the path).

By adding a UUID to the user data role of a list item, an additional unique information is added that allows plugins to de-duplicate list items.

From Pat, just did this so I can get a build

List widgets are currently used as playlists in source properties,
but only contain the file paths and no other identifying information.

This can lead to files being added multiple times, so when changes to
list order occurs, plugins cannot uniquely identify which duplicate
item was actually changed (because they're only identified by the path).

By adding a UUID to the user data role of a list item, an additional
unique information is added that allows plugins to de-duplicate list
items.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants