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.
This commit is contained in:
Sander Dijkhuis 2009-07-14 14:37:21 +02:00
parent 001af72727
commit 2aea9c59a4

View File

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