diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2026-08-22 16:59:43 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2026-08-22 17:00:50 +0800 |
| commit | fc96d37c1440e5386181cde4e904459bb544d66d (patch) | |
| tree | 5c0f99de3670effa5d36198937bc2aefcfa4ae32 | |
| parent | e73138201463d1f5036d7436d58d208fc45a6a0c (diff) | |
DuckDuckGo: fix copying the placeholder
| -rw-r--r-- | popups/launcher/components/DuckDuckGo.qml | 21 |
1 files changed, 10 insertions, 11 deletions
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 } } } |
