Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions files/usr/share/cinnamon/applets/network@cinnamon.org/applet.js
Original file line number Diff line number Diff line change
Expand Up @@ -2403,8 +2403,17 @@ CinnamonNetworkApplet.prototype = {
let mc = this._mainConnection;

if (!mc) {
this._setIcon('xsi-network-offline');
this.set_applet_tooltip(_("No connection"));
if (this._client.state == NM.State.CONNECTED_GLOBAL) {
// We are online through a device NetworkManager does not
// manage (for instance one configured in
// /etc/network/interfaces): there is no active connection
// to describe, but we are not offline either.
this._setIcon('xsi-network-wired');
this.set_applet_tooltip(_("Connected through an unmanaged device"));
} else {
this._setIcon('xsi-network-offline');
this.set_applet_tooltip(_("No connection"));
}
} else if (mc.state == NM.ActiveConnectionState.ACTIVATING) {
new_delay = FAST_PERIODIC_UPDATE_FREQUENCY_SECONDS;
switch (mc._section) {
Expand Down
Loading