diff --git a/l10n b/l10n index 0268dc81..706b3333 160000 --- a/l10n +++ b/l10n @@ -1 +1 @@ -Subproject commit 0268dc81cf7ffadc670d2868decb1d7cd0fc5f59 +Subproject commit 706b33337345e4231e18313463259703b3fbc50d diff --git a/src/browser/base/content/zen-panels/popups.inc b/src/browser/base/content/zen-panels/popups.inc index 5cafc20f..83b4f44b 100644 --- a/src/browser/base/content/zen-panels/popups.inc +++ b/src/browser/base/content/zen-panels/popups.inc @@ -23,6 +23,7 @@ hide-if-usercontext-disabled="true"> + diff --git a/src/zen/workspaces/ZenWorkspaces.mjs b/src/zen/workspaces/ZenWorkspaces.mjs index 4c8ea0d9..437928ae 100644 --- a/src/zen/workspaces/ZenWorkspaces.mjs +++ b/src/zen/workspaces/ZenWorkspaces.mjs @@ -1180,6 +1180,26 @@ var gZenWorkspaces = new (class extends ZenMultiWindowFeature { themePicker.hidden = this.#contextMenuData.workspaceId && this.#contextMenuData.workspaceId !== this.activeWorkspace; + const separator = document.getElementById('context_zenWorkspacesSeparator'); + for (const item of event.target.querySelectorAll('.zen-workspace-context-menu-item')) { + item.remove(); + } + if (!this.#contextMenuData.workspaceId) { + separator.hidden = false; + for (const workspace of [...this._workspaceCache.workspaces].reverse()) { + const item = document.createXULElement('menuitem'); + item.className = 'zen-workspace-context-menu-item'; + item.setAttribute('zen-workspace-id', workspace.uuid); + item.setAttribute('disabled', workspace.uuid === this.activeWorkspace); + item.setAttribute('label', (workspace.icon ?? ' \u25CB ') + ' ' + workspace.name); + item.addEventListener('command', (e) => { + this.changeWorkspaceWithID(e.target.closest('menuitem').getAttribute('zen-workspace-id')); + }); + separator.after(item); + } + } else { + separator.hidden = true; + } event.target.addEventListener( 'popuphidden', () => { diff --git a/surfer.json b/surfer.json index d4aa9ad2..6e8eb9e7 100644 --- a/surfer.json +++ b/surfer.json @@ -19,7 +19,7 @@ "brandShortName": "Zen", "brandFullName": "Zen Browser", "release": { - "displayVersion": "1.13.1b", + "displayVersion": "1.13.2b", "github": { "repo": "zen-browser/desktop" },