add discord to tray

This commit is contained in:
dragonwocky 2020-08-27 23:11:49 +10:00
parent bae4c4cc06
commit 4279bbc00d
Signed by: dragonwocky
GPG Key ID: C7A48B7846AA706D
2 changed files with 23 additions and 9 deletions

View File

@ -13,6 +13,8 @@ this package is a mod-loader for the desktop app, with custom colour theming and
want to contribute? check out the [contribution guidelines](CONTRIBUTING.md) and the [documentation](DOCUMENTATION.md). want to contribute? check out the [contribution guidelines](CONTRIBUTING.md) and the [documentation](DOCUMENTATION.md).
for support, join the [discord server](https://discord.gg/sFWPXtA).
## installation ## installation
**coming from <= v0.7.0? things are a bit different - have a read of [the update guide](UPDATING.md)** **coming from <= v0.7.0? things are a bit different - have a read of [the update guide](UPDATING.md)**
@ -75,6 +77,8 @@ team to take to heart for future improvements."
once applied, modules can be configured via the graphical menu, which is opened from once applied, modules can be configured via the graphical menu, which is opened from
the tray/menubar icon or with `CMD/CTRL+E`. the tray/menubar icon or with `CMD/CTRL+E`.
![](https://user-images.githubusercontent.com/16874139/91446210-84ee6b00-e8ba-11ea-9f40-187a150e4a82.png)
currently all modules come pre-installed for technical reasons, security assurance, and ease-of-use. currently all modules come pre-installed for technical reasons, security assurance, and ease-of-use.
these include: these include:

View File

@ -112,6 +112,25 @@ module.exports = (store, __exports) => {
} }
const contextMenu = electron.Menu.buildFromTemplate([ const contextMenu = electron.Menu.buildFromTemplate([
{
type: 'normal',
label: 'GitHub',
click: () => {
electron.shell.openExternal(
'https://github.com/dragonwocky/notion-enhancer/blob/master/DOCUMENTATION.md'
);
},
},
{
type: 'normal',
label: 'Discord',
click: () => {
electron.shell.openExternal('https://discord.gg/sFWPXtA');
},
},
{
type: 'separator',
},
{ {
type: 'normal', type: 'normal',
label: 'Bug Report', label: 'Bug Report',
@ -133,15 +152,6 @@ module.exports = (store, __exports) => {
{ {
type: 'separator', type: 'separator',
}, },
{
type: 'normal',
label: 'Docs',
click: () => {
electron.shell.openExternal(
'https://github.com/dragonwocky/notion-enhancer/tree/js'
);
},
},
{ {
type: 'normal', type: 'normal',
label: 'Enhancements', label: 'Enhancements',