Compare commits

...

3 Commits

3 changed files with 10 additions and 3 deletions

View File

@@ -898,7 +898,10 @@
handle_windowDragLeave(event) { handle_windowDragLeave(event) {
// If relatedTarget exists, then we are still in the window // If relatedTarget exists, then we are still in the window
if (event.relatedTarget) { if (
event.relatedTarget ||
event.target.id === "zen-split-view-fake-browser"
) {
return; return;
} }
const canvas = this._tabbrowserTabs._dndCanvas; const canvas = this._tabbrowserTabs._dndCanvas;

View File

@@ -2486,7 +2486,8 @@ class nsZenWorkspaces {
w => w.uuid !== this.activeWorkspace w => w.uuid !== this.activeWorkspace
); );
const ctxCommand = document.getElementById("cmd_zenCtxDeleteWorkspace"); const ctxCommand = document.getElementById("cmd_zenCtxDeleteWorkspace");
if (workspaces.length <= 1) { const hasMultipleWorkspaces = !!workspaces.length;
if (!hasMultipleWorkspaces) {
ctxCommand.setAttribute("disabled", "true"); ctxCommand.setAttribute("disabled", "true");
} else { } else {
ctxCommand.removeAttribute("disabled"); ctxCommand.removeAttribute("disabled");
@@ -2506,6 +2507,9 @@ class nsZenWorkspaces {
)) { )) {
item.remove(); item.remove();
} }
if (!hasMultipleWorkspaces) {
continue;
}
const separator = document.createXULElement("menuseparator"); const separator = document.createXULElement("menuseparator");
separator.classList.add("zen-workspace-context-menu-item"); separator.classList.add("zen-workspace-context-menu-item");
if (isMoveTabPopup) { if (isMoveTabPopup) {

View File

@@ -20,7 +20,7 @@
"brandShortName": "Zen", "brandShortName": "Zen",
"brandFullName": "Zen Browser", "brandFullName": "Zen Browser",
"release": { "release": {
"displayVersion": "1.21.7b", "displayVersion": "1.21.8b",
"github": { "github": {
"repo": "zen-browser/desktop" "repo": "zen-browser/desktop"
}, },