InputText clipboard: disable Paste if empty

pull/8724/head
hius07 2 years ago committed by poire-z
parent 0cdbe91e2a
commit 2e49b780bd

@ -237,11 +237,10 @@ if Device:isTouchDevice() or Device:hasDPad() then
}, },
{ {
text = _("Paste"), text = _("Paste"),
enabled = not is_clipboard_empty,
callback = function() callback = function()
if not is_clipboard_empty then UIManager:close(clipboard_dialog)
UIManager:close(clipboard_dialog) self:addChars(clipboard_value)
self:addChars(clipboard_value)
end
end, end,
}, },
}, },

Loading…
Cancel
Save