forked from zen-browser/desktop
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed pinning and unpinning extensions messing up the toolbar
- Loading branch information
Showing
2 changed files
with
15 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,27 @@ | ||
diff --git a/browser/base/content/browser-addons.js b/browser/base/content/browser-addons.js | ||
index 992d07daaef1abc4554a43aa654888f66963c575..6db4dd3864375da4b83a3a6f1a656403f324093e 100644 | ||
index 992d07daaef1abc4554a43aa654888f66963c575..73e620b70b7ed14e9d140e875c2cd5f5ac31456b 100644 | ||
--- a/browser/base/content/browser-addons.js | ||
+++ b/browser/base/content/browser-addons.js | ||
@@ -2113,10 +2113,12 @@ var gUnifiedExtensions = { | ||
@@ -2105,18 +2105,20 @@ var gUnifiedExtensions = { | ||
this._maybeMoveWidgetNodeBack(widgetId); | ||
} | ||
|
||
- this.pinToToolbar(widgetId, shouldPinToToolbar); | ||
+ await this.pinToToolbar(widgetId, shouldPinToToolbar); | ||
}, | ||
|
||
- pinToToolbar(widgetId, shouldPinToToolbar) { | ||
+ async pinToToolbar(widgetId, shouldPinToToolbar) { | ||
let newArea = shouldPinToToolbar | ||
? CustomizableUI.AREA_NAVBAR | ||
: CustomizableUI.AREA_ADDONS; | ||
let newPosition = shouldPinToToolbar ? undefined : 0; | ||
+ for (const window of CustomizableUI.windows) window.gZenVerticalTabsManager._preCustomize(); | ||
+ await gZenVerticalTabsManager._preCustomize(); | ||
|
||
CustomizableUI.addWidgetToArea(widgetId, newArea, newPosition); | ||
|
||
this.updateAttention(); | ||
+ for (const window of CustomizableUI.windows) window.gZenVerticalTabsManager._updateEvent(); | ||
+ await gZenVerticalTabsManager._postCustomize(); | ||
}, | ||
|
||
async moveWidget(menu, direction) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters