InputText clipboard: disable Paste if empty
This commit is contained in:
1 parent
0cdbe91e2a
commit
2e49b780bd
1 file changed
+3
-4
@@ -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