Show feedback message when downloads index manually invalidated

Closes #9768
This commit is contained in:
arkon
2023-07-29 12:09:00 -04:00
parent fd30c0adcd
commit f3e9d5f346
2 changed files with 5 additions and 1 deletions

View File

@ -221,7 +221,10 @@ object SettingsAdvancedScreen : SearchableSettings {
Preference.PreferenceItem.TextPreference(
title = stringResource(R.string.pref_invalidate_download_cache),
subtitle = stringResource(R.string.pref_invalidate_download_cache_summary),
onClick = { Injekt.get<DownloadCache>().invalidateCache() },
onClick = {
Injekt.get<DownloadCache>().invalidateCache()
context.toast(R.string.download_cache_invalidated)
},
),
Preference.PreferenceItem.TextPreference(
title = stringResource(R.string.pref_clear_database),