From e104720ef4a2e5e4cd4702628ce695c14074101b Mon Sep 17 00:00:00 2001 From: BlankParticle Date: Fri, 7 Jun 2024 14:08:06 +0530 Subject: [PATCH] fix: type issues --- src/bluetooth.ts | 2 +- src/ui.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bluetooth.ts b/src/bluetooth.ts index aac823a..d109777 100644 --- a/src/bluetooth.ts +++ b/src/bluetooth.ts @@ -12,7 +12,7 @@ export default class BluetoothController extends Signals.EventEmitter { super(); this._client = new GnomeBluetooth.Client(); this._deviceNotifyConnected = new Set(); - this._store = this._client.get_devices(); + this._store = this._client.get_devices() as Gio.ListStore; } enable() { diff --git a/src/ui.ts b/src/ui.ts index 5b71880..10d0fd6 100644 --- a/src/ui.ts +++ b/src/ui.ts @@ -35,7 +35,7 @@ export class PopupSwitchWithButtonMenuItem extends PopupMenu.PopupSwitchMenuItem ) { const label = device.alias || device.name || "(unknown)"; - super(label, device.connected, {}); + super(label, device.connected); this._handleIcon(device); @@ -246,7 +246,7 @@ class BatteryInfoWidgetClass extends St.BoxLayout { this._icon = new St.Icon({ styleClass: "popup-menu-icon" }); this.add_child(this._icon); - this._icon.iconName = null; + this._icon.iconName = "battery-missing-symbolic"; // dirty trick: instantiate the label with text 100%, so we can set // the natural width of the label in case monospace has no effect