Use property getter method instead of directly accessing values for clients. (#569)
This commit is contained in:
@@ -258,7 +258,7 @@ export const renderLabel = (
|
||||
if (hyprlandService.focusedWorkspace.id === i || isWorkspaceActiveOnMonitor(monitor, i)) {
|
||||
return activeIndicator;
|
||||
}
|
||||
if ((hyprlandService.get_workspace(i)?.clients.length || 0) > 0) {
|
||||
if ((hyprlandService.get_workspace(i)?.get_clients().length || 0) > 0) {
|
||||
return occupiedIndicator;
|
||||
}
|
||||
if (monitor !== -1) {
|
||||
|
||||
@@ -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