diff --git a/js/ui/status/network.js b/js/ui/status/network.js index 61348883c..c9c86a916 100644 --- a/js/ui/status/network.js +++ b/js/ui/status/network.js @@ -1611,6 +1611,13 @@ class NMDeviceToggle extends NMToggle { return name; } + _transformSubtitle(source) { + const subtitle = super._transformSubtitle(source); + if (subtitle === this.title) + return null; + return subtitle; + } + _loadInitialItems() { const devices = this._client.get_devices(); for (const dev of devices) @@ -1842,13 +1849,6 @@ class NMWiredToggle extends NMDeviceToggle { 'gnome-network-panel.desktop'); } - _transformSubtitle(source) { - const subtitle = super._transformSubtitle(source); - if (subtitle === this.title) - return null; - return subtitle; - } - _createDeviceMenuItem(device) { return new NMWiredDeviceItem(this._client, device); }