Skip to content
  • Luis Javier Merino's avatar
    Don't get the selection to check if it is empty · 5919c1fd
    Luis Javier Merino authored and Tomaz  Canabrava's avatar Tomaz Canabrava committed
    Every time the selection is changed, the selection text is retrieved to
    check whether to enable or disable the copy actions. Besides that, the
    selection text is also used for the web search context menu entries.
    
    Better just check if the selection is empty and make a note that the
    selection changed, so the next time the context menu is invoked it can
    retrieve the current selection text, which should happen much less often
    than selection changes.
    5919c1fd