Add back option to hide Updates count (#8709)

Adds back the option to hide the updates count on the Updates tab
This commit is contained in:
Soitora
2022-12-09 23:25:06 +01:00
committed by GitHub
parent 82a3a98a5a
commit 8937e22ce4
4 changed files with 15 additions and 2 deletions

View File

@@ -37,6 +37,13 @@ object SettingsGeneralScreen : SearchableSettings {
val prefs = remember { Injekt.get<BasePreferences>() }
val libraryPrefs = remember { Injekt.get<LibraryPreferences>() }
return mutableListOf<Preference>().apply {
add(
Preference.PreferenceItem.SwitchPreference(
pref = libraryPrefs.newShowUpdatesCount(),
title = stringResource(R.string.pref_library_update_show_tab_badge),
),
)
add(
Preference.PreferenceItem.SwitchPreference(
pref = prefs.confirmExit(),