Commit 040a5c8c authored by Bruce Anderson's avatar Bruce Anderson Committed by Jan Grulich

Icon in system tray missing when WireGuard connection active on startup

If a WireGuard connection is made prior to start of the
plasma-nm applet, no icon is displayed in the system tray.

BUG: 420983

Test Plan:
1. Setup a Wired connection to autostart
2. Setup a WireGuard connection which uses the Wired
   connection and set to autostart
3. Logout and login to start a new Plasma session
4. Verify that the standard Wired connection icon with a
   padlock symbol on it is shown in the system tray

Reviewers: jgrulich

Reviewed By: jgrulich

Subscribers: plasma-devel

Tags: #plasma

Differential Revision:
parent be3eaeef
......@@ -317,7 +317,9 @@ void ConnectionIcon::setIcons()
// Set icon based on the current primary connection if the activating connection is virtual
// since we're not setting icons for virtual connections
if (!connection || (connection && UiUtils::isConnectionTypeVirtual(connection->type()))) {
if (!connection
|| (connection && UiUtils::isConnectionTypeVirtual(connection->type()))
|| connection->type() == NetworkManager::ConnectionSettings::WireGuard) {
connection = NetworkManager::primaryConnection();
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment