mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-03 06:18:38 +09:00
[Pale-Moon] Issue #1750 - Add pref to show edit panel upon starring new bookmark.
This resolves #1750
This commit is contained in:
parent
85edb66d36
commit
f704591f36
2 changed files with 9 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue