mirror of
https://github.com/zen-browser/desktop.git
synced 2026-07-19 15:11:12 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a791c5dadc | ||
|
|
247cde9c09 | ||
|
|
425f0ae1c3 |
@@ -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;
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
@@ -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"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user