feat: Change name of Preferences > Filters > Tabs and move them to Account Preferences(#3536) (#4115)
# Overview In the previous code, when you open preferences, there is a section headed "Filters" with a section called "Tabs" This is confusing. # Changes - Change the section title from "Filters" to "Per-timeline preferences." - Change the current "Tabs" section to "Home timeline" since it is only for home timelines # Screenshots account preference screen | detail screen :--: | :--: |<image src="https://github.com/tuskyapp/Tusky/assets/62137820/12694f24-b7e3-4ba3-90f5-53740e9c4269" width="250" />|<image src="https://github.com/tuskyapp/Tusky/assets/62137820/796e9ac1-76d6-43ef-a087-a1cd2d899ef8" width="250" /> # Note - Maybe string resources should have a new property? (for translation) # Related link Fixes #3536 --------- Co-authored-by: mcc <andi.m.mcclure@gmail.com>
This commit is contained in:
parent
966ba38dbe
commit
e8e7bad110
12 changed files with 59 additions and 22 deletions
|
|
@ -22,6 +22,9 @@ class AccountPreferenceDataStore @Inject constructor(
|
|||
PrefKeys.ALWAYS_SHOW_SENSITIVE_MEDIA -> account.alwaysShowSensitiveMedia
|
||||
PrefKeys.ALWAYS_OPEN_SPOILER -> account.alwaysOpenSpoiler
|
||||
PrefKeys.MEDIA_PREVIEW_ENABLED -> account.mediaPreviewEnabled
|
||||
PrefKeys.TAB_FILTER_HOME_BOOSTS -> account.isShowHomeBoosts
|
||||
PrefKeys.TAB_FILTER_HOME_REPLIES -> account.isShowHomeReplies
|
||||
PrefKeys.TAB_SHOW_HOME_SELF_BOOSTS -> account.isShowHomeSelfBoosts
|
||||
else -> defValue
|
||||
}
|
||||
}
|
||||
|
|
@ -31,6 +34,9 @@ class AccountPreferenceDataStore @Inject constructor(
|
|||
PrefKeys.ALWAYS_SHOW_SENSITIVE_MEDIA -> account.alwaysShowSensitiveMedia = value
|
||||
PrefKeys.ALWAYS_OPEN_SPOILER -> account.alwaysOpenSpoiler = value
|
||||
PrefKeys.MEDIA_PREVIEW_ENABLED -> account.mediaPreviewEnabled = value
|
||||
PrefKeys.TAB_FILTER_HOME_BOOSTS -> account.isShowHomeBoosts = value
|
||||
PrefKeys.TAB_FILTER_HOME_REPLIES -> account.isShowHomeReplies = value
|
||||
PrefKeys.TAB_SHOW_HOME_SELF_BOOSTS -> account.isShowHomeSelfBoosts = value
|
||||
}
|
||||
|
||||
accountManager.saveAccount(account)
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ enum class AppTheme(val value: String) {
|
|||
*
|
||||
* - Adding a new preference that does not change the interpretation of an existing preference
|
||||
*/
|
||||
const val SCHEMA_VERSION = 2023082301
|
||||
const val SCHEMA_VERSION = 2023112001
|
||||
|
||||
/** The schema version for fresh installs */
|
||||
const val NEW_INSTALL_SCHEMA_VERSION = 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue