Updated on 2026-08-14
This commit is contained in:
parent
822ed8eb80
commit
aa03d39dc0
1 changed files with 1 additions and 1 deletions
|
|
@ -45,7 +45,7 @@ fun PasteButton(
|
|||
) {
|
||||
val clipboardManager = LocalClipboardManager.current
|
||||
val hapticFeedback = LocalHapticFeedback.current
|
||||
val isPasteEnabled = !clipboardManager.getText()?.text.isNullOrEmpty()
|
||||
val isPasteEnabled = clipboardManager.hasText()
|
||||
val color = if (isPasteEnabled) {
|
||||
backgroundColorEnabled
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue