Skip to content

Commit 42960e3

Browse files
committed
network applet: Make sure there's always a menu item for the active
connection. setActiveConnection will return early if there's no change to the item. Fixes #9531.
1 parent 6347298 commit 42960e3

File tree

1 file changed

+4
-3
lines changed
  • files/usr/share/cinnamon/applets/network@cinnamon.org

1 file changed

+4
-3
lines changed

files/usr/share/cinnamon/applets/network@cinnamon.org/applet.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2047,15 +2047,16 @@ CinnamonNetworkApplet.prototype = {
20472047
} else
20482048
a._primaryDevice = this._devices.vpn.device;
20492049

2050-
if (a._primaryDevice)
2051-
a._primaryDevice.setActiveConnection(a);
2052-
20532050
if (a.state == NM.ActiveConnectionState.ACTIVATED &&
20542051
a._primaryDevice && a._primaryDevice._notification) {
20552052
a._primaryDevice._notification.destroy();
20562053
a._primaryDevice._notification = null;
20572054
}
20582055
}
2056+
2057+
if (a._primaryDevice) {
2058+
a._primaryDevice.setActiveConnection(a);
2059+
}
20592060
}
20602061

20612062
this._mainConnection = activated || activating || default_ip4 || default_ip6 || null;

0 commit comments

Comments
 (0)