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

@@ -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) {

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);
}
});
});