mirror of
https://github.com/zen-browser/desktop.git
synced 2025-09-05 19:08:18 +00:00
Remove Essentials Toolbar from ZenStartup and call create it in browser-places.js
This commit is contained in:
@@ -34,11 +34,7 @@
|
||||
|
||||
// Disable smooth scroll
|
||||
gBrowser.tabContainer.arrowScrollbox.smoothScroll = false;
|
||||
new ZenEssentialsToolbar(
|
||||
`place:parent=pfgqteRgY-Wr`,
|
||||
document.getElementById("EssentialsToolbarItems"),
|
||||
document.getElementById("EssentialsToolbar")
|
||||
);
|
||||
|
||||
ZenWorkspaces.init();
|
||||
gZenUIManager.init();
|
||||
gZenVerticalTabsManager.init();
|
||||
|
@@ -1,8 +1,8 @@
|
||||
diff --git a/browser/base/content/browser-places.js b/browser/base/content/browser-places.js
|
||||
index 6992d22069643b58b249ae16edfe354304e56a39..38a006799feb5f4f41e582074901bb7226397ae1 100644
|
||||
index 62b3665394a8256ebedf88a8f10bb6766977cf57..a0bee37cbf9e8f79b3ea69b8dec711a93ef837a0 100644
|
||||
--- a/browser/base/content/browser-places.js
|
||||
+++ b/browser/base/content/browser-places.js
|
||||
@@ -243,6 +243,8 @@ var StarUI = {
|
||||
@@ -252,6 +252,8 @@ var StarUI = {
|
||||
});
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ index 6992d22069643b58b249ae16edfe354304e56a39..38a006799feb5f4f41e582074901bb72
|
||||
let onPanelReady = fn => {
|
||||
let target = this.panel;
|
||||
if (target.parentNode) {
|
||||
@@ -294,6 +296,21 @@ var StarUI = {
|
||||
@@ -303,6 +305,21 @@ var StarUI = {
|
||||
}
|
||||
},
|
||||
|
||||
@@ -33,3 +33,16 @@ index 6992d22069643b58b249ae16edfe354304e56a39..38a006799feb5f4f41e582074901bb72
|
||||
removeBookmarkButtonCommand: function SU_removeBookmarkButtonCommand() {
|
||||
this._removeBookmarksOnPopupHidden = true;
|
||||
this.panel.hidePopup();
|
||||
@@ -1107,6 +1124,12 @@ var PlacesToolbarHelper = {
|
||||
viewElt
|
||||
);
|
||||
|
||||
+ new ZenEssentialsToolbar(
|
||||
+ `place:parent=pfgqteRgY-Wr`,
|
||||
+ document.getElementById("EssentialsToolbarItems"),
|
||||
+ document.getElementById("EssentialsToolbar")
|
||||
+ );
|
||||
+
|
||||
if (toolbar.id == "PersonalToolbar") {
|
||||
// We just created a new view, thus we must check again the empty toolbar
|
||||
// message, regardless of "initialized".
|
||||
|
Reference in New Issue
Block a user