diff --git a/js/ui/status/network.js b/js/ui/status/network.js index 9354183d3..b24d608e4 100644 --- a/js/ui/status/network.js +++ b/js/ui/status/network.js @@ -1731,14 +1731,24 @@ var NMApplet = class extends PanelMenu.SystemIndicator { this._addDeviceWrapper(wrapper); this._nmDevices.push(device); - if (!skipSyncDeviceNames) - this._syncDeviceNames(); + this._deviceChanged(device, skipSyncDeviceNames); - if (wrapper instanceof NMConnectionSection) { - this._connections.forEach(connection => { - wrapper.checkConnection(connection); - }); - } + device.connect('notify::interface', () => { + this._deviceChanged(device, false); + }); + } + } + + _deviceChanged(device, skipSyncDeviceNames) { + let wrapper = device._delegate; + + if (!skipSyncDeviceNames) + this._syncDeviceNames(); + + if (wrapper instanceof NMConnectionSection) { + this._connections.forEach(connection => { + wrapper.checkConnection(connection); + }); } }