From 2aea9c59a4795761c83f82ca8ffa51bd62abc363 Mon Sep 17 00:00:00 2001 From: Sander Dijkhuis Date: Tue, 14 Jul 2009 14:37:21 +0200 Subject: [PATCH] Bug 588173 - No remove button on the first workspace If there is only one workspace and it's empty, it should not get a remove button. Add a workspaceNum != 0 check to workspaces.js. --- js/ui/workspaces.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/ui/workspaces.js b/js/ui/workspaces.js index 082545ab4..e70329456 100644 --- a/js/ui/workspaces.js +++ b/js/ui/workspaces.js @@ -321,6 +321,7 @@ Workspace.prototype = { updateRemovable : function() { let global = Shell.Global.get(); let removable = (this._windows.length == 1 /* just desktop */ && + this.workspaceNum != 0 && this.workspaceNum == global.screen.n_workspaces - 1); if (removable) {