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:
|
case Cut:
|
||||||
return enabled && (_copyCurrentLineWhenNoSelection || !_selectionRange.empty);
|
return enabled && (_copyCurrentLineWhenNoSelection || !_selectionRange.empty);
|
||||||
case Paste:
|
case Paste:
|
||||||
return enabled && Platform.instance.getClipboardText().length > 0;
|
return enabled && Platform.instance.hasClipboardText();
|
||||||
case Undo:
|
case Undo:
|
||||||
return enabled && _content.hasUndo;
|
return enabled && _content.hasUndo;
|
||||||
case Redo:
|
case Redo:
|
||||||
|
|
Loading…
Reference in New Issue