Fix menubar issues
This commit is contained in:
parent
eda5b6b281
commit
370cad7893
|
@ -2,7 +2,7 @@
|
||||||
// Electron script to run Hyperspace as an app
|
// Electron script to run Hyperspace as an app
|
||||||
// © 2018 Hyperspace developers. Licensed under Apache 2.0.
|
// © 2018 Hyperspace developers. Licensed under Apache 2.0.
|
||||||
|
|
||||||
const { app, menu, protocol, BrowserWindow, shell } = require('electron');
|
const { app, Menu, protocol, BrowserWindow, shell } = require('electron');
|
||||||
const windowStateKeeper = require('electron-window-state');
|
const windowStateKeeper = require('electron-window-state');
|
||||||
const { autoUpdater } = require('electron-updater');
|
const { autoUpdater } = require('electron-updater');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
@ -152,6 +152,7 @@ function createWindow() {
|
||||||
* Create the menu bar and attach it to a window
|
* Create the menu bar and attach it to a window
|
||||||
*/
|
*/
|
||||||
function createMenubar() {
|
function createMenubar() {
|
||||||
|
let menu = Menu;
|
||||||
// Create a menu bar template
|
// Create a menu bar template
|
||||||
const menuBar = [
|
const menuBar = [
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue