Skip to content

Commit

Permalink
Expose autoAttachOnOpenedWithOwner by default
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Jan 16, 2024
1 parent 3bc3dc9 commit 1b1bf10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
9 changes: 1 addition & 8 deletions webextensions/background/browser-action-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -428,57 +428,50 @@ const mItems = [
{
title: browser.i18n.getMessage('config_autoAttachOnOpenedWithOwner_before'),
enabled: false,
expert: true,
},
{
title: indent() + browser.i18n.getMessage('config_autoAttachOnOpenedWithOwner_noControl') + delimiter + browser.i18n.getMessage('config_autoAttachOnOpenedWithOwner_after'),
key: 'autoAttachOnOpenedWithOwner',
value: Constants.kNEWTAB_DO_NOTHING,
type: 'radio',
expert: true,
},
{
title: indent() + browser.i18n.getMessage('config_autoAttachOnOpenedWithOwner_independent') + delimiter + browser.i18n.getMessage('config_autoAttachOnOpenedWithOwner_after'),
key: 'autoAttachOnOpenedWithOwner',
value: Constants.kNEWTAB_OPEN_AS_ORPHAN,
type: 'radio',
expert: true,
},
{
title: indent() + browser.i18n.getMessage('config_autoAttachOnOpenedWithOwner_childTop') + delimiter + browser.i18n.getMessage('config_autoAttachOnOpenedWithOwner_after'),
key: 'autoAttachOnOpenedWithOwner',
value: Constants.kNEWTAB_OPEN_AS_CHILD_TOP,
type: 'radio',
expert: true,
},
{
title: indent() + browser.i18n.getMessage('config_autoAttachOnOpenedWithOwner_childEnd') + delimiter + browser.i18n.getMessage('config_autoAttachOnOpenedWithOwner_after') + ' ' + browser.i18n.getMessage('config_recommended_choice'),
key: 'autoAttachOnOpenedWithOwner',
value: Constants.kNEWTAB_OPEN_AS_CHILD_END,
type: 'radio',
expert: true,
},
{
title: indent() + browser.i18n.getMessage('config_autoAttachOnOpenedWithOwner_childNextToLastRelatedTab') + delimiter + browser.i18n.getMessage('config_autoAttachOnOpenedWithOwner_after') + ' ' + browser.i18n.getMessage('config_firefoxCompatible_choice'),
key: 'autoAttachOnOpenedWithOwner',
value: Constants.kNEWTAB_OPEN_AS_CHILD_NEXT_TO_LAST_RELATED_TAB,
type: 'radio',
expert: true,
},
{
title: indent() + browser.i18n.getMessage('config_autoAttachOnOpenedWithOwner_sibling') + delimiter + browser.i18n.getMessage('config_autoAttachOnOpenedWithOwner_after'),
key: 'autoAttachOnOpenedWithOwner',
value: Constants.kNEWTAB_OPEN_AS_SIBLING,
type: 'radio',
expert: true,
},
{
title: indent() + browser.i18n.getMessage('config_autoAttachOnOpenedWithOwner_nextSibling') + delimiter + browser.i18n.getMessage('config_autoAttachOnOpenedWithOwner_after'),
key: 'autoAttachOnOpenedWithOwner',
value: Constants.kNEWTAB_OPEN_AS_NEXT_SIBLING,
type: 'radio',
expert: true,
},
{ type: 'separator' },
{
title: browser.i18n.getMessage('config_insertNewTabFromPinnedTabAt_caption'),
enabled: false,
Expand Down
2 changes: 1 addition & 1 deletion webextensions/options/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ <h1>__MSG_config_context_caption__</h1>
<section id="section-newTabWithOwner">
<h1>__MSG_config_newTabWithOwner_caption__</h1>

<p class="expert"><label>__MSG_config_autoAttachOnOpenedWithOwner_before__
<p><label>__MSG_config_autoAttachOnOpenedWithOwner_before__
<select id="autoAttachOnOpenedWithOwner">
<option value="-1">__MSG_config_autoAttachOnOpenedWithOwner_noControl__</option>
<option value="0">__MSG_config_autoAttachOnOpenedWithOwner_independent__</option>
Expand Down

0 comments on commit 1b1bf10

Please sign in to comment.