Add a menu item to open the options page.
This commit is contained in:
parent
b2d92796a9
commit
e1cbcc8d9b
|
@ -107,6 +107,11 @@ const contextMenus: Menus.CreateCreatePropertiesType[] = [
|
||||||
id: 'queue-open-next-link-in-new-tab',
|
id: 'queue-open-next-link-in-new-tab',
|
||||||
title: 'Open next link in new tab',
|
title: 'Open next link in new tab',
|
||||||
contexts: ['browser_action']
|
contexts: ['browser_action']
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 'queue-open-options-page',
|
||||||
|
title: 'Open the extension page',
|
||||||
|
contexts: ['browser_action']
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -154,5 +159,7 @@ browser.contextMenus.onClicked.addListener(async (info, _tab) => {
|
||||||
await browser.tabs.create({active: true, url: nextItem.url});
|
await browser.tabs.create({active: true, url: nextItem.url});
|
||||||
await removeQItem(nextItem.id);
|
await removeQItem(nextItem.id);
|
||||||
}
|
}
|
||||||
|
} else if (id === 'queue-open-options-page') {
|
||||||
|
await openOptionsPage();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -60,6 +60,9 @@ export function PageMain(props: MainProps): QComponent {
|
||||||
<p>Opening the extension page:</p>
|
<p>Opening the extension page:</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Double-click the extension icon.</li>
|
<li>Double-click the extension icon.</li>
|
||||||
|
<li>
|
||||||
|
Right-click the extension icon and click "Open the extension page".
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<p>Deleting queue items:</p>
|
<p>Deleting queue items:</p>
|
||||||
|
|
Loading…
Reference in New Issue