Fixed pining extensions to the toolbar

This commit is contained in:
mr. M
2024-12-08 18:24:14 +01:00
parent 7e9153171a
commit 8ebe7e74e8
2 changed files with 20 additions and 2 deletions

View File

@@ -0,0 +1,17 @@
diff --git a/browser/base/content/browser-addons.js b/browser/base/content/browser-addons.js
index 992d07daaef1abc4554a43aa654888f66963c575..6db4dd3864375da4b83a3a6f1a656403f324093e 100644
--- a/browser/base/content/browser-addons.js
+++ b/browser/base/content/browser-addons.js
@@ -2113,10 +2113,12 @@ var gUnifiedExtensions = {
? CustomizableUI.AREA_NAVBAR
: CustomizableUI.AREA_ADDONS;
let newPosition = shouldPinToToolbar ? undefined : 0;
+ for (const window of CustomizableUI.windows) window.gZenVerticalTabsManager._preCustomize();
CustomizableUI.addWidgetToArea(widgetId, newArea, newPosition);
this.updateAttention();
+ for (const window of CustomizableUI.windows) window.gZenVerticalTabsManager._updateEvent();
},
async moveWidget(menu, direction) {