Use property getter method instead of directly accessing values for clients. (#569)

This commit is contained in:
Jas Singh
2024-12-21 00:24:48 -08:00
committed by GitHub
parent 3be15068c0
commit 551fccaaf2
2 changed files with 2 additions and 2 deletions

View File

@@ -31,7 +31,7 @@ export const initializeAutoHide = (): void => {
hyprlandService.workspaces.map((workspace) => {
if (autoHide.get() === 'single-window') {
App.get_window(`bar-${workspace.monitor.id}`)?.set_visible(workspace.clients.length !== 1);
App.get_window(`bar-${workspace.monitor.id}`)?.set_visible(workspace.get_clients().length !== 1);
}
});
});