fix(ags): prevent app undefined error
This commit is contained in:
parent
e9e304aafb
commit
2d1c0d71f6
1 changed files with 4 additions and 2 deletions
|
@ -16,8 +16,10 @@ export default () => Box({
|
||||||
connections: [[Hyprland.active.client, (self) => {
|
connections: [[Hyprland.active.client, (self) => {
|
||||||
const app = Applications.query(Hyprland.active.client.class)[0];
|
const app = Applications.query(Hyprland.active.client.class)[0];
|
||||||
|
|
||||||
|
if (app) {
|
||||||
self.icon = app.iconName;
|
self.icon = app.iconName;
|
||||||
self.visible = Hyprland.active.client.title !== '';
|
self.visible = Hyprland.active.client.title !== '';
|
||||||
|
}
|
||||||
}]],
|
}]],
|
||||||
}),
|
}),
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue