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:
parent
001af72727
commit
2aea9c59a4
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user