tidy electron files, they were starting to annoy me
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
73ec3e1f4d
commit
911c3bcf6e
4 changed files with 107 additions and 176 deletions
|
@ -25,9 +25,7 @@ exports.hasTray = function hasTray() {
|
|||
|
||||
exports.create = function(win, config) {
|
||||
// no trays on darwin
|
||||
if (process.platform === 'darwin' || trayIcon) {
|
||||
return;
|
||||
}
|
||||
if (process.platform === 'darwin' || trayIcon) return;
|
||||
|
||||
const toggleWin = function() {
|
||||
if (win.isVisible() && !win.isMinimized()) {
|
||||
|
@ -41,12 +39,10 @@ exports.create = function(win, config) {
|
|||
|
||||
const contextMenu = Menu.buildFromTemplate([
|
||||
{
|
||||
label: 'Show/Hide ' + config.brand,
|
||||
label: `Show/Hide ${config.brand}`,
|
||||
click: toggleWin,
|
||||
},
|
||||
{
|
||||
type: 'separator',
|
||||
},
|
||||
{ type: 'separator' },
|
||||
{
|
||||
label: 'Quit',
|
||||
click: function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue