diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-08-10 18:47:20 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-08-10 18:47:20 +0800 |
| commit | 2d3ebada700f3825e1a5884eddcca80a7460fa60 (patch) | |
| tree | 9cb5855a68b300e02d515f99760e20d8c4f3b166 | |
| parent | 82c3dfb8ba957b2865e2d86cef2c8928129d31b0 (diff) | |
clip: answer respect selectedIndex
| -rw-r--r-- | launcher/components/Clip.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/launcher/components/Clip.qml b/launcher/components/Clip.qml index 95f1e64..ffec453 100644 --- a/launcher/components/Clip.qml +++ b/launcher/components/Clip.qml @@ -21,11 +21,11 @@ IComponent { process: function () { const isValid = clipHist.length > 0; - const first = isValid && clipHist[0]; + const selected = isValid && clipHist[selectedIndex]; return { valid: isValid, priority: isValid, - answer: first ? first.icon : "" + answer: selected.data || "" }; } |
