fix(agsV2): init workspaces at start
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-10-03 11:50:42 -04:00
parent efbff8839d
commit df5b1ed415

View file

@ -142,7 +142,7 @@ export default () => {
});
};
self.hook(Hyprland, 'event', () => {
const updateAll = () => {
workspaces = (self.children as Widget.Revealer[])
.filter((ch) => {
return Hyprland.get_workspaces().find((ws) => {
@ -158,7 +158,10 @@ export default () => {
const TEMP_TIMEOUT = 100;
timeout(TEMP_TIMEOUT, () => updateHighlight(highlight));
});
};
updateAll();
self.hook(Hyprland, 'event', updateAll);
}}
/>
</overlay>