mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
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
1 changed files with 7 additions and 0 deletions
|
|
@ -669,6 +669,13 @@ var NMDeviceBluetooth = class extends NMConnectionDevice {
|
|||
return _("Connect to Internet");
|
||||
}
|
||||
|
||||
_getMenuIcon() {
|
||||
if (!this._device.active_connection)
|
||||
return 'network-cellular-disabled-symbolic';
|
||||
|
||||
return this.getIndicatorIcon();
|
||||
}
|
||||
|
||||
getIndicatorIcon() {
|
||||
if (this._device.active_connection) {
|
||||
let state = this._device.active_connection.state;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue