mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-13 02:22:10 +01:00
Fix image search actions
This commit is contained in:
parent
41386aa7d6
commit
1e59f0215b
|
@ -58,7 +58,7 @@ class ActionManager(QtCore.QObject):
|
||||||
|
|
||||||
if action.testAction(cond, url):
|
if action.testAction(cond, url):
|
||||||
act = Falkon.Action(action.icon, action.title, self)
|
act = Falkon.Action(action.icon, action.title, self)
|
||||||
act.triggered.connect(lambda a=action, w=webView, u=url, t=text: self.execAction(a, w, u, t))
|
act.triggered.connect(lambda checked, a=action, w=webView, u=url, t=text: self.execAction(a, w, u, t))
|
||||||
if action.submenu:
|
if action.submenu:
|
||||||
if action.submenu not in menus:
|
if action.submenu not in menus:
|
||||||
menu = Falkon.Menu(action.menuTitle, webView)
|
menu = Falkon.Menu(action.menuTitle, webView)
|
||||||
|
|
|
@ -91,4 +91,4 @@ Type=Service
|
||||||
X-RunAction-Type="Url"
|
X-RunAction-Type="Url"
|
||||||
X-RunAction-TypeCondition="Image"
|
X-RunAction-TypeCondition="Image"
|
||||||
X-RunAction-Submenu="search_with"
|
X-RunAction-Submenu="search_with"
|
||||||
X-RunAction-Exec="https://www.google.com/searchbyimage?site=search&image_url={url}"
|
X-RunAction-Exec="https://lens.google.com/uploadbyurl?url={url}"
|
||||||
|
|
|
@ -89,4 +89,4 @@ Type=Service
|
||||||
X-RunAction-Type="Url"
|
X-RunAction-Type="Url"
|
||||||
X-RunAction-TypeCondition="Image"
|
X-RunAction-TypeCondition="Image"
|
||||||
X-RunAction-Submenu="search_with"
|
X-RunAction-Submenu="search_with"
|
||||||
X-RunAction-Exec="https://yandex.com/images/search?&img_url={url}&rpt=imageview"
|
X-RunAction-Exec="https://yandex.com/images/search?rpt=imageview&url={url}"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user