Refactor ZenWorkspaces to fix issue with workspace icon picker positioning

This commit is contained in:
mr. M 2024-10-15 12:09:09 +02:00
parent 53317969bf
commit d66477ba43
No known key found for this signature in database
GPG key ID: CBD57A2AEDBDA1FB

View file

@ -740,7 +740,7 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature {
const parent = browser.ownerGlobal;
let tab = gBrowser.getTabForBrowser(browser);
let workspaceID = tab.getAttribute('zen-workspace-id');
if (!workspaceID) {
if (!workspaceID || (tab.pinned && !this._shouldAllowPinTab)) {
return;
}
let activeWorkspace = await parent.ZenWorkspaces.getActiveWorkspace();