From 96f00d4604d83c12c4b105191f9e82f0441112f7 Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Fri, 24 Apr 2020 16:18:02 +0200 Subject: [PATCH] Hide plugins if onCreate fails --- src/org/kde/kdeconnect/Device.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/org/kde/kdeconnect/Device.java b/src/org/kde/kdeconnect/Device.java index 2040ba96..6d576a59 100644 --- a/src/org/kde/kdeconnect/Device.java +++ b/src/org/kde/kdeconnect/Device.java @@ -837,6 +837,8 @@ public class Device implements BaseLink.PacketReceiver { plugins.add(pluginKey); newPluginsByIncomingInterface.put(packageType, plugins); } + } else { + removePlugin(pluginKey); } } else { removePlugin(pluginKey);