mirror of
https://github.com/zen-browser/desktop.git
synced 2026-02-02 10:04:37 +00:00
fix: Dont update the spaces menu for GTK, b=closes #12024, c=common
This commit is contained in:
@@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user