1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

Fix image search actions

(cherry picked from commit 1e59f0215b)
This commit is contained in:
Martin Rodriguez Reboredo 2024-07-01 13:38:39 -03:00 committed by Albert Astals Cid
parent 8d2d6b044c
commit 34a3015f24
3 changed files with 3 additions and 3 deletions

View File

@ -58,7 +58,7 @@ class ActionManager(QtCore.QObject):
if action.testAction(cond, url):
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 not in menus:
menu = Falkon.Menu(action.menuTitle, webView)

View File

@ -91,4 +91,4 @@ Type=Service
X-RunAction-Type="Url"
X-RunAction-TypeCondition="Image"
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}"

View File

@ -89,4 +89,4 @@ Type=Service
X-RunAction-Type="Url"
X-RunAction-TypeCondition="Image"
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}"