Use property getter method instead of directly accessing values for clients. (#569)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user