fix: Fixed context menu data disappearing too early, b=no-bug, c=workspaces

This commit is contained in:
mr. m
2025-06-15 06:15:22 +02:00
parent ecbce38f52
commit a17a1da3b8

View File

@@ -1135,7 +1135,9 @@ var gZenWorkspaces = new (class extends ZenMultiWindowFeature {
workspaceActions.addEventListener('popupshowing', this.updateWorkspaceActionsMenu.bind(this));
workspaceActions.addEventListener('popuphidden', () => {
setTimeout(() => {
this.#contextMenuData = null;
setTimeout(() => {
this.#contextMenuData = null;
}, 0);
}, 0); // Delay to ensure the context menu data is cleared after the popup is hidden
});