Skip to content

Commit

Permalink
Remove view menu from dev and prod
Browse files Browse the repository at this point in the history
  • Loading branch information
LanceGundersen committed Mar 7, 2019
1 parent 95591f4 commit 20dc436
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tbinge",
"version": "0.2.1",
"version": "0.2.2",
"author": "Lance Gunderse, Fatawa Lansah, Clifford Ramsey, Kyle McCain",
"description": "Tbinge is a desktop movie/tv library written in Electron/Node.js.",
"private": true,
Expand Down
16 changes: 1 addition & 15 deletions src/background.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

import { app, protocol, BrowserWindow, Menu } from 'electron'
import { app, protocol, BrowserWindow } from 'electron'
import {
createProtocol,
installVueDevtools
Expand Down Expand Up @@ -53,7 +53,6 @@ app.on('activate', () => {
// initialization and is ready to create browser windows.
// Some APIs can only be used after this event occurs.
app.on('ready', async () => {
const menu = Menu.buildFromTemplate(template)
if (isDevelopment && !process.env.IS_TEST) {
// Install Vue Devtools
try {
Expand All @@ -63,7 +62,6 @@ app.on('ready', async () => {
}
}
createWindow()
Menu.setApplicationMenu(menu)
})

// Exit cleanly on request from parent process in development mode.
Expand All @@ -80,15 +78,3 @@ if (isDevelopment) {
})
}
}

const template = [
// { role: 'viewMenu' }
{
label: 'View',
submenu: [
{ role: 'reload' },
{ role: 'forcereload' },
{ role: 'toggledevtools' }
]
}
]

0 comments on commit 20dc436

Please sign in to comment.