Skip to content

Commit c65b37a

Browse files
fix(clipper): remove dead wlCopyProc reference causing ReferenceError on teardown (v2.4.2)
Component.onDestruction in Main.qml referenced wlCopyProc, an id that does not exist in this file. It threw: ReferenceError: wlCopyProc is not defined on panel/shell teardown. The id was left over from an earlier refactor; wl-copy usage already lives in copyToClipboardProc and direct Quickshell.execDetached(["wl-copy", ...]) calls, so no replacement logic is needed — just delete the two dead lines. Bumps version to 2.4.2 and adds a matching CHANGELOG entry.
1 parent ee2c969 commit c65b37a

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

clipper/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Clipper Plugin - Comprehensive Changelog
22

3+
## Version 2.4.2 (2026-04-22)
4+
5+
### Fix ReferenceError on plugin teardown
6+
7+
- Removed a dead `wlCopyProc` reference in `Component.onDestruction` (`Main.qml`) that threw `ReferenceError: wlCopyProc is not defined` when the panel or shell was torn down. The id was left over from an earlier refactor; wl-copy usage already lives in `copyToClipboardProc` and direct `Quickshell.execDetached(["wl-copy", ...])` calls, so no replacement logic is needed.
8+
39
## Version 2.4.1 (2026-04-21)
410

511
### Fix Qt.btoa deprecation warnings

clipper/Main.qml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1297,8 +1297,6 @@ Item {
12971297
getSelectionForNoteSelectorProcess.terminate();
12981298
if (copyToClipboardProc.running)
12991299
copyToClipboardProc.terminate();
1300-
if (wlCopyProc.running)
1301-
wlCopyProc.terminate();
13021300
if (deleteItemProc.running)
13031301
deleteItemProc.terminate();
13041302
if (wipeProc.running)

clipper/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "clipper",
33
"name": "Clipper",
4-
"version": "2.4.1",
4+
"version": "2.4.2",
55
"minNoctaliaVersion": "4.1.2",
66
"author": "blackbartblues",
77
"contributors": [

0 commit comments

Comments
 (0)