mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
InputText clipboard: disable Paste if empty
This commit is contained in:
@@ -237,11 +237,10 @@ if Device:isTouchDevice() or Device:hasDPad() then
|
||||
},
|
||||
{
|
||||
text = _("Paste"),
|
||||
enabled = not is_clipboard_empty,
|
||||
callback = function()
|
||||
if not is_clipboard_empty then
|
||||
UIManager:close(clipboard_dialog)
|
||||
self:addChars(clipboard_value)
|
||||
end
|
||||
UIManager:close(clipboard_dialog)
|
||||
self:addChars(clipboard_value)
|
||||
end,
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user