Fix clear history button visibility

This commit is contained in:
Sad Ellie 2023-09-30 14:29:44 +03:00
parent d1eb0060f1
commit d519af6ec8

View File

@ -227,8 +227,10 @@ private fun Ready(
historyListHeight = dragState.requireOffset().toDp() historyListHeight = dragState.requireOffset().toDp()
} }
} }
focusManager.clearFocus() focusManager.clearFocus()
}
LaunchedEffect(dragState.currentValue) {
showClearHistoryButton = dragState.currentValue == DragState.OPEN showClearHistoryButton = dragState.currentValue == DragState.OPEN
} }