fix: Dont update the spaces menu for GTK, b=closes #12024, c=common

This commit is contained in:
mr. m
2026-01-31 18:34:55 +01:00
parent a4386de00d
commit 41d97ddd21

View File

@@ -98,6 +98,12 @@ export class nsZenMenuBar {
</menu>`);
document.getElementById("view-menu").after(spacesMenubar);
document.getElementById("zen-spaces-menubar").addEventListener("popupshowing", () => {
if (AppConstants.platform === "linux") {
// On linux, there seems to be a bug where the menu freezes up and makes the browser
// suppiciously unresponsive if we try to update the menu while it's opening.
// See https://github.com/zen-browser/desktop/issues/12024
return;
}
gZenWorkspaces.updateWorkspacesChangeContextMenu();
});
}