From 91867481a80b64b8c55b746e8351fa4b152adbbe Mon Sep 17 00:00:00 2001 From: Marx Zhu Date: Mon, 25 Mar 2024 15:54:35 +0800 Subject: [PATCH] fix: change clipboard content when content is really in NetworkPacket --- .../kdeconnect/Plugins/ClibpoardPlugin/ClipboardPlugin.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/org/kde/kdeconnect/Plugins/ClibpoardPlugin/ClipboardPlugin.java b/src/org/kde/kdeconnect/Plugins/ClibpoardPlugin/ClipboardPlugin.java index 62296bcc..4c859c32 100644 --- a/src/org/kde/kdeconnect/Plugins/ClibpoardPlugin/ClipboardPlugin.java +++ b/src/org/kde/kdeconnect/Plugins/ClibpoardPlugin/ClipboardPlugin.java @@ -77,7 +77,9 @@ public class ClipboardPlugin extends Plugin { return false; } - ClipboardListener.instance(context).setText(content); + if (np.has("content")) { // change clipboard if content is in NetworkPacket + ClipboardListener.instance(context).setText(content); + } return true; } throw new UnsupportedOperationException("Unknown packet type: " + np.getType());