From 14ab607a7695297efe98b97ab023973055189cee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Wed, 21 Feb 2024 18:59:23 +0100 Subject: [PATCH 09/28] workspace-indicator: Use existing property We already track the current workspace index, use that instead of getting it from the workspace manager again. Part-of: --- extensions/workspace-indicator/workspaceIndicator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/workspace-indicator/workspaceIndicator.js b/extensions/workspace-indicator/workspaceIndicator.js index fe54b95c..26c9d7ee 100644 --- a/extensions/workspace-indicator/workspaceIndicator.js +++ b/extensions/workspace-indicator/workspaceIndicator.js @@ -439,7 +439,7 @@ export class WorkspaceIndicator extends PanelMenu.Button { return; - let newIndex = global.workspace_manager.get_active_workspace_index() + diff; + const newIndex = this._currentWorkspace + diff; this._activate(newIndex); } } -- 2.44.0