[Pale-Moon] Issue #1750 - Add pref to show edit panel upon starring new bookmark.

This resolves #1750
pull/24/head
Pale Moon 2 years ago committed by Roy Tam
parent 85edb66d36
commit f704591f36
  1. 3
      application/palemoon/app/profile/palemoon.js
  2. 7
      application/palemoon/base/content/browser-places.js

@ -943,6 +943,9 @@ pref("security.alternate_certificate_error_page", "certerror");
// Whether to start the private browsing mode at application startup
pref("browser.privatebrowsing.autostart", false);
// Whether to immediately open the bookmark edit panel for new bookmarks
pref("browser.bookmarks.editDialog.showForNewBookmarks", false);
// Don't try to alter this pref, it'll be reset the next time you use the
// bookmarking dialog
pref("browser.bookmarks.editDialog.firstEditField", "namePicker");

@ -14,6 +14,10 @@ var StarUI = {
return document.getElementById(aID);
},
get showForNewBookmarks() {
return Services.prefs.getBoolPref("browser.bookmarks.editDialog.showForNewBookmarks", false);
},
// Edit-bookmark panel
get panel() {
delete this.panel;
@ -1261,7 +1265,8 @@ var BookmarkingUI = {
}
// Ignore clicks on the star if we are updating its state.
if (!this._pendingStmt) {
PlacesCommandHook.bookmarkCurrentPage(this._itemIds.length > 0);
PlacesCommandHook.bookmarkCurrentPage(this._itemIds.length > 0 ||
StarUI.showForNewBookmarks);
}
},

Loading…
Cancel
Save