Skip to content

Commit 1a5a9f5

Browse files
committed
fix: primary button not showing
missed a spot
1 parent ce6a593 commit 1a5a9f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/live/mehiz/mpvkt/ui/player/PlayerViewModel.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class PlayerViewModel(
6464
try {
6565
val buttons = mpvKtDatabase.customButtonDao().getCustomButtons().first()
6666
buttons.firstOrNull { it.id == playerPreferences.primaryCustomButtonId.get() }?.let {
67-
_primaryButton.update { it }
67+
_primaryButton.update { _ -> it }
6868
// If the button text is not empty, it has been set buy a lua script in which
6969
// case we don't want to override it
7070
if (_primaryButtonTitle.value.isEmpty()) {

0 commit comments

Comments
 (0)