mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-20 22:27:31 +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
|
// Whether to start the private browsing mode at application startup
|
||||||
pref("browser.privatebrowsing.autostart", false);
|
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
|
// Don't try to alter this pref, it'll be reset the next time you use the
|
||||||
// bookmarking dialog
|
// bookmarking dialog
|
||||||
pref("browser.bookmarks.editDialog.firstEditField", "namePicker");
|
pref("browser.bookmarks.editDialog.firstEditField", "namePicker");
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,10 @@ var StarUI = {
|
||||||
return document.getElementById(aID);
|
return document.getElementById(aID);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
get showForNewBookmarks() {
|
||||||
|
return Services.prefs.getBoolPref("browser.bookmarks.editDialog.showForNewBookmarks", false);
|
||||||
|
},
|
||||||
|
|
||||||
// Edit-bookmark panel
|
// Edit-bookmark panel
|
||||||
get panel() {
|
get panel() {
|
||||||
delete this.panel;
|
delete this.panel;
|
||||||
|
|
@ -1261,7 +1265,8 @@ var BookmarkingUI = {
|
||||||
}
|
}
|
||||||
// Ignore clicks on the star if we are updating its state.
|
// Ignore clicks on the star if we are updating its state.
|
||||||
if (!this._pendingStmt) {
|
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