@@ -17,7 +17,7 @@ import { startScanner } from './background/network-scanner';
1717import { startZmq } from './background/zmq' ;
1818import { autoUpdater } from "electron-updater" ;
1919const createRPC = require ( './rpc' ) ;
20- const contextMenuTemplate = require ( './contextmenu' ) ;
20+ // const contextMenuTemplate = require('./contextmenu');
2121const AppMenu = require ( './menus/menu' ) ;
2222// import icon from '../resources/icons/96x96.png';
2323import * as settings from './settings' ;
@@ -28,7 +28,7 @@ const chalk = require('chalk');
2828const prefix = chalk . bold . blue ;
2929const bgTaskColor = chalk . white ;
3030
31- app . appMenuTemplate = AppMenu . createMenu ( ) ;
31+ // app.appMenuTemplate = AppMenu.createMenu();
3232app . setName ( "Workbench" ) ;
3333
3434function writeLog ( ...params ) {
@@ -130,22 +130,22 @@ app.on('ready', async () => {
130130 // await installExtensions();
131131 // }
132132 const makeMenu = ( ) => {
133- const menu = AppMenu . createMenu ( app . createWindow ) ;
133+ // const menu = AppMenu.createMenu(app.createWindow);
134134
135- // If we're on Mac make a Dock Menu
136- if ( process . platform === 'darwin' ) {
137- const dockMenu = Menu . buildFromTemplate ( [
138- {
139- label : 'New Window' ,
140- click ( ) {
141- app . createWindow ( ) ;
142- }
143- }
144- ] ) ;
145- app . dock . setMenu ( dockMenu ) ;
146- }
135+ // // If we're on Mac make a Dock Menu
136+ // if (process.platform === 'darwin') {
137+ // const dockMenu = Menu.buildFromTemplate([
138+ // {
139+ // label: 'New Window',
140+ // click() {
141+ // app.createWindow();
142+ // }
143+ // }
144+ // ]);
145+ // app.dock.setMenu(dockMenu);
146+ // }
147147
148- Menu . setApplicationMenu ( AppMenu . buildMenu ( menu ) ) ;
148+ // Menu.setApplicationMenu(AppMenu.buildMenu(menu));
149149 } ;
150150 // const newIcon = nativeImage.createFromDataURL(icon);
151151 mainWindow = new BrowserWindow ( {
0 commit comments