Speed up Paste action state check when a lot of text in clipboard (no string conversion)

This commit is contained in:
and3md 2017-09-21 18:41:26 +02:00
parent 888acfb7d3
commit e067acf788
1 changed files with 1 additions and 1 deletions

View File

@ -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: