fix(ags): prevent app undefined error

This commit is contained in:
matt1432 2023-12-07 23:39:30 -05:00
parent e9e304aafb
commit 2d1c0d71f6

View file

@ -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 !== '';
}
}]], }]],
}), }),