mirror of
https://github.com/mihonapp/mihon.git
synced 2025-11-15 05:27:28 +01:00
Cleanup hide updates/history button settings
This commit is contained in:
@@ -487,10 +487,8 @@ class MainActivity : BaseViewBindingActivity<MainActivityBinding>() {
|
||||
}
|
||||
|
||||
private fun updateNavMenu(menu: Menu) {
|
||||
val navUpdates = menu.findItem(R.id.nav_updates)
|
||||
navUpdates.isVisible = !preferences.hideUpdatesButton().get()
|
||||
val navHistory = menu.findItem(R.id.nav_history)
|
||||
navHistory.isVisible = !preferences.hideHistoryButton().get()
|
||||
menu.findItem(R.id.nav_updates).isVisible = preferences.showNavUpdates()
|
||||
menu.findItem(R.id.nav_history).isVisible = preferences.showNavHistory()
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -271,14 +271,14 @@ class SettingsGeneralController : SettingsController() {
|
||||
defaultValue = true
|
||||
}
|
||||
switchPreference {
|
||||
key = Keys.hideUpdatesButton
|
||||
titleRes = R.string.pref_hide_updates_button
|
||||
defaultValue = false
|
||||
key = Keys.showNavUpdates
|
||||
titleRes = R.string.label_recent_updates
|
||||
defaultValue = true
|
||||
}
|
||||
switchPreference {
|
||||
key = Keys.hideHistoryButton
|
||||
titleRes = R.string.pref_hide_history_button
|
||||
defaultValue = false
|
||||
key = Keys.showNavHistory
|
||||
titleRes = R.string.label_recent_manga
|
||||
defaultValue = true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user