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

Store and retrieve user track selector settings in local storage #4351

Merged
merged 2 commits into from
Apr 22, 2024

Conversation

cmdcolin
Copy link
Collaborator

@cmdcolin cmdcolin commented Apr 17, 2024

Fixes #3977

Currently if you collapse a category in the track selector, then close it, then re-open it, then is not collapsed on re-opening.
This stores the collapsed category settings and sort settings in localStorage

@cmdcolin cmdcolin added the enhancement New feature or request label Apr 18, 2024
@cmdcolin cmdcolin force-pushed the localstorage_track_settings branch from 0dbb71e to 1f8451e Compare April 19, 2024 13:36
@cmdcolin
Copy link
Collaborator Author

I now changed the settings to volatiles instead of model state to avoid the situation where e.g. "loading another users session" would overwrite all your "collapsed preferences"

@cmdcolin cmdcolin force-pushed the localstorage_track_settings branch 2 times, most recently from d8a53ae to c7e1386 Compare April 22, 2024 15:07
@cmdcolin cmdcolin force-pushed the localstorage_track_settings branch from dc9bdc6 to b9e54b9 Compare April 22, 2024 15:43
@cmdcolin cmdcolin merged commit 5c4a16a into main Apr 22, 2024
10 checks passed
@cmdcolin cmdcolin deleted the localstorage_track_settings branch April 22, 2024 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Track selector state not saved between closing and reopening
1 participant