Skip to content

Commit

Permalink
fix(prefs): Don't format mpv preferences
Browse files Browse the repository at this point in the history
  • Loading branch information
Secozzi committed Feb 19, 2025
1 parent fa1b154 commit 8fe31ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ internal fun PreferenceItem(
},
singleLine = false,
canBeBlank = item.canBeBlank,
formatSubtitle = false,
)
}
is Preference.PreferenceItem.EditTextInfoPreference -> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,13 @@ fun EditTextPreferenceWidget(
onConfirm: suspend (String) -> Boolean,
singleLine: Boolean = true,
canBeBlank: Boolean = false,
formatSubtitle: Boolean = true,
) {
var isDialogShown by remember { mutableStateOf(false) }

TextPreferenceWidget(
title = title,
subtitle = subtitle?.format(value),
subtitle = if (formatSubtitle) subtitle?.format(value) else subtitle,
icon = icon,
onPreferenceClick = { isDialogShown = true },
)
Expand Down

0 comments on commit 8fe31ac

Please sign in to comment.