From d31f31b5735f2607e75b4bbdd50408debb1334c5 Mon Sep 17 00:00:00 2001 From: Leigh Scott Date: Sat, 4 Jul 2026 08:09:19 +0100 Subject: [PATCH] network: Remove stale wireguard connections --- .../usr/share/cinnamon/applets/network@cinnamon.org/applet.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/files/usr/share/cinnamon/applets/network@cinnamon.org/applet.js b/files/usr/share/cinnamon/applets/network@cinnamon.org/applet.js index 9f67e1133b..850dddf51a 100644 --- a/files/usr/share/cinnamon/applets/network@cinnamon.org/applet.js +++ b/files/usr/share/cinnamon/applets/network@cinnamon.org/applet.js @@ -2309,6 +2309,10 @@ CinnamonNetworkApplet.prototype = { this._devices.vpn.device.removeConnection(connection); if (this._devices.vpn.device.empty) this._devices.vpn.section.actor.hide(); + } else if (section == NMConnectionCategory.WIREGUARD) { + this._devices.wireguard.device.removeConnection(connection); + if (this._devices.wireguard.device.empty) + this._devices.wireguard.section.actor.hide(); } else if (section != NMConnectionCategory.INVALID) { let devices = this._devices[section].devices; for (let i = 0; i < devices.length; i++)