Skip to content

Commit

Permalink
fix: allow removal of multiple bookmarks via page context menu even i…
Browse files Browse the repository at this point in the history
…f inbox mode is enabled
  • Loading branch information
teddy-gustiaux committed Mar 23, 2024
1 parent 20bea4d commit 95fc6a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/scripts/bookmarking/QuickBookmarking.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ class QuickBookmarking {
}
}

async toggle() {
async toggle(ignoreInboxMode = false) {
if (this.#webPage.isBookmarked) {
if (this.#options.isInboxModeEnabled()) {
if (!ignoreInboxMode && this.#options.isInboxModeEnabled()) {
if (
Utils.allBookmarksAreInFolder(
this.#options.getQuickFolder(),
Expand Down Expand Up @@ -113,7 +113,7 @@ class QuickBookmarking {

async bookmarkToggleViaPageContextMenu(clickData) {
if (this.#options.areContextMenusEnabled() && this.#webPage.isSupported) {
await this.toggle();
await this.toggle(true);
}
}
}

0 comments on commit 95fc6a2

Please sign in to comment.