From 4279bbc00d0e71ba5ea136bbdeb93f6d862b0041 Mon Sep 17 00:00:00 2001 From: dragonwocky Date: Thu, 27 Aug 2020 23:11:49 +1000 Subject: [PATCH] add discord to tray --- README.md | 4 ++++ mods/core/tray.js | 28 +++++++++++++++++++--------- 2 files changed, 23 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index add4c3a..3c32561 100644 --- a/README.md +++ b/README.md @@ -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). +for support, join the [discord server](https://discord.gg/sFWPXtA). + ## installation **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 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. these include: diff --git a/mods/core/tray.js b/mods/core/tray.js index 280bb50..031dd85 100644 --- a/mods/core/tray.js +++ b/mods/core/tray.js @@ -112,6 +112,25 @@ module.exports = (store, __exports) => { } 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', label: 'Bug Report', @@ -133,15 +152,6 @@ module.exports = (store, __exports) => { { type: 'separator', }, - { - type: 'normal', - label: 'Docs', - click: () => { - electron.shell.openExternal( - 'https://github.com/dragonwocky/notion-enhancer/tree/js' - ); - }, - }, { type: 'normal', label: 'Enhancements',