status/network: Show disabled icon when bluetooth cellular is disabled
https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2186 Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2198>
This commit is contained in:
parent
2898b4d29c
commit
3d3ed850fe
@ -669,6 +669,13 @@ var NMDeviceBluetooth = class extends NMConnectionDevice {
|
|||||||
return _("Connect to Internet");
|
return _("Connect to Internet");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_getMenuIcon() {
|
||||||
|
if (!this._device.active_connection)
|
||||||
|
return 'network-cellular-disabled-symbolic';
|
||||||
|
|
||||||
|
return this.getIndicatorIcon();
|
||||||
|
}
|
||||||
|
|
||||||
getIndicatorIcon() {
|
getIndicatorIcon() {
|
||||||
if (this._device.active_connection) {
|
if (this._device.active_connection) {
|
||||||
let state = this._device.active_connection.state;
|
let state = this._device.active_connection.state;
|
||||||
|
Loading…
Reference in New Issue
Block a user