fix: Wired._device undefined

This commit is contained in:
Aylur
2023-10-02 17:07:31 +02:00
parent 39b0e8b8e6
commit 991c23c463
+1 -1
View File
@@ -189,7 +189,7 @@ class Wired extends Service {
this._device = device;
// TODO make signals actually signal when they should
this._device.connect('notify::speed', () => {
this._device?.connect('notify::speed', () => {
this.emit('changed');
['speed', 'internet', 'state', 'icon-name']
.map(prop => this.notify(prop));