Skip to content

Commit

Permalink
fix: type issues
Browse files Browse the repository at this point in the history
  • Loading branch information
BlankParticle committed Jun 7, 2024
1 parent d819042 commit e104720
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/bluetooth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<GnomeBluetooth.Device>;
}

enable() {
Expand Down
4 changes: 2 additions & 2 deletions src/ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e104720

Please sign in to comment.