mirror of
https://github.com/zoriya/ags.git
synced 2026-06-07 12:15:15 +00:00
fix: Wired._device undefined
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user