mirror of https://github.com/buggins/dlangui.git
Speed up Paste action state check when a lot of text in clipboard (no string conversion)
This commit is contained in:
parent
888acfb7d3
commit
e067acf788
|
@ -642,7 +642,7 @@ class EditWidgetBase : ScrollWidgetBase, EditableContentListener, MenuItemAction
|
|||
case Cut:
|
||||
return enabled && (_copyCurrentLineWhenNoSelection || !_selectionRange.empty);
|
||||
case Paste:
|
||||
return enabled && Platform.instance.getClipboardText().length > 0;
|
||||
return enabled && Platform.instance.hasClipboardText();
|
||||
case Undo:
|
||||
return enabled && _content.hasUndo;
|
||||
case Redo:
|
||||
|
|
Loading…
Reference in New Issue