From fc96d37c1440e5386181cde4e904459bb544d66d Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sat, 22 Aug 2026 16:59:43 +0800 Subject: DuckDuckGo: fix copying the placeholder --- popups/launcher/components/DuckDuckGo.qml | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'popups') diff --git a/popups/launcher/components/DuckDuckGo.qml b/popups/launcher/components/DuckDuckGo.qml index b8ad81e..3c410d7 100644 --- a/popups/launcher/components/DuckDuckGo.qml +++ b/popups/launcher/components/DuckDuckGo.qml @@ -43,18 +43,18 @@ IComponent { }; } exec: function () { - // FIXME: doesn't work as enter closes the launcher - if (!expand) { - expand = true; - return true; - } else - Clip.copy(`{DuckDuckGo.title}\n{DuckDuckGo.description_html}`); + // FIXME: doesn't work as enter closes the launcher + // if (!expand) { + // expand = true; + // return false; + // } else + Clip.copy(`${DuckDuckGo.title}\n${DuckDuckGo.description_html}`); } IInnerComponent { anchors.margins: Launcher.duckduckgoSpacing RowLayout { - id: layout + id: layout spacing: Launcher.duckduckgoSpacing Layout.fillWidth: true Layout.fillHeight: true @@ -69,9 +69,8 @@ IComponent { visible: image.status === Image.Ready Image { - property real maxWidth: status === Image.Ready ? implicitWidth : 0 - id: image + property real maxWidth: status === Image.Ready ? implicitWidth : 0 anchors.fill: parent fillMode: Image.PreserveAspectCrop @@ -132,8 +131,8 @@ IComponent { } TapHandler { - gesturePolicy: TapHandler.DragThreshold - onTapped: expand = !expand + gesturePolicy: TapHandler.DragThreshold + onTapped: expand = !expand } } } -- cgit v1.2.3