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

This resolves #1750
This commit is contained in:
Pale Moon 2020-03-30 18:58:07 +02:00 committed by Roy Tam
commit f704591f36
2 changed files with 9 additions and 1 deletions

View file

@ -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");

View file

@ -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);
}
},