Removed seemingly redundant isEnabled overrides

This commit is contained in:
OpenSauce04 2025-04-11 14:07:06 +01:00 committed by OpenSauce
parent e043b46c13
commit cd58ce998a
6 changed files with 6 additions and 12 deletions

View file

@ -12,8 +12,7 @@ class DateTimeSetting(
titleId: Int, titleId: Int,
descriptionId: Int, descriptionId: Int,
val key: String? = null, val key: String? = null,
private val defaultValue: String? = null, private val defaultValue: String? = null
override var isEnabled: Boolean = true
) : SettingsItem(setting, titleId, descriptionId) { ) : SettingsItem(setting, titleId, descriptionId) {
override val type = TYPE_DATETIME_SETTING override val type = TYPE_DATETIME_SETTING

View file

@ -15,8 +15,7 @@ class SingleChoiceSetting(
val choicesId: Int, val choicesId: Int,
val valuesId: Int, val valuesId: Int,
val key: String? = null, val key: String? = null,
val defaultValue: Int? = null, val defaultValue: Int? = null
override var isEnabled: Boolean = true
) : SettingsItem(setting, titleId, descriptionId) { ) : SettingsItem(setting, titleId, descriptionId) {
override val type = TYPE_SINGLE_CHOICE override val type = TYPE_SINGLE_CHOICE

View file

@ -20,8 +20,7 @@ class SliderSetting(
val max: Int, val max: Int,
val units: String, val units: String,
val key: String? = null, val key: String? = null,
val defaultValue: Float? = null, val defaultValue: Float? = null
override var isEnabled: Boolean = true
) : SettingsItem(setting, titleId, descriptionId) { ) : SettingsItem(setting, titleId, descriptionId) {
override val type = TYPE_SLIDER override val type = TYPE_SLIDER
val selectedFloat: Float val selectedFloat: Float

View file

@ -12,8 +12,7 @@ class StringInputSetting(
titleId: Int, titleId: Int,
descriptionId: Int, descriptionId: Int,
val defaultValue: String, val defaultValue: String,
val characterLimit: Int = 0, val characterLimit: Int = 0
override var isEnabled: Boolean = true
) : SettingsItem(setting, titleId, descriptionId) { ) : SettingsItem(setting, titleId, descriptionId) {
override val type = TYPE_STRING_INPUT override val type = TYPE_STRING_INPUT

View file

@ -15,8 +15,7 @@ class StringSingleChoiceSetting(
val choices: Array<String>, val choices: Array<String>,
val values: Array<String>?, val values: Array<String>?,
val key: String? = null, val key: String? = null,
private val defaultValue: String? = null, private val defaultValue: String? = null
override var isEnabled: Boolean = true
) : SettingsItem(setting, titleId, descriptionId) { ) : SettingsItem(setting, titleId, descriptionId) {
override val type = TYPE_STRING_SINGLE_CHOICE override val type = TYPE_STRING_SINGLE_CHOICE

View file

@ -13,8 +13,7 @@ class SwitchSetting(
titleId: Int, titleId: Int,
descriptionId: Int, descriptionId: Int,
val key: String? = null, val key: String? = null,
val defaultValue: Any? = null, val defaultValue: Any? = null
override var isEnabled: Boolean = true
) : SettingsItem(setting, titleId, descriptionId) { ) : SettingsItem(setting, titleId, descriptionId) {
override val type = TYPE_SWITCH override val type = TYPE_SWITCH