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

Add "clear image cache" button to developer preferences #3409

Merged
merged 1 commit into from
Feb 27, 2024

Conversation

nielsvanvelzen
Copy link
Member

Useful during development but also in general to clear app cache without going to system preferences. It clears both disk and memory cache of Coil (our image library).

Changes

  • Add "clear image cache" button to developer preferences

95100002ce

Issues

@nielsvanvelzen nielsvanvelzen added the enhancement New feature or request label Feb 27, 2024
@nielsvanvelzen nielsvanvelzen added this to the v0.17.0 milestone Feb 27, 2024
@OptIn(ExperimentalCoilApi::class)
action {
setTitle(R.string.clear_image_cache)
content = getString(R.string.clear_image_cache_content, Formatter.formatFileSize(context, imageLoader.diskCache?.size ?: 0))

Check warning

Code scanning / detekt

Line detected, which is longer than the defined maximum line length in the code style. Warning

Line detected, which is longer than the defined maximum line length in the code style.
@nielsvanvelzen nielsvanvelzen merged commit e76c56b into jellyfin:master Feb 27, 2024
5 checks passed
@nielsvanvelzen nielsvanvelzen deleted the dev-pref-image-cache branch February 27, 2024 14:30
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.

2 participants