fix(agsV2): init workspaces at start
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
efbff8839d
commit
df5b1ed415
1 changed files with 5 additions and 2 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue