Add standard menus
This commit is contained in:
parent
25b0fbd949
commit
e112217095
2 changed files with 155 additions and 0 deletions
5
main.js
5
main.js
|
@ -7,6 +7,7 @@ const fs = require('fs')
|
|||
const autoUpdater = require('electron-updater').autoUpdater
|
||||
const autoUpdaterInterval = 60 * 60 * 1000;
|
||||
const ipc = electron.ipcMain;
|
||||
const Menu = electron.Menu;
|
||||
|
||||
app.setAppUserModelId('org.whispersystems.signal-desktop')
|
||||
|
||||
|
@ -91,6 +92,10 @@ app.on('ready', function() {
|
|||
setInterval(function() { autoUpdater.checkForUpdates(); }, autoUpdaterInterval);
|
||||
}
|
||||
|
||||
let template = require('./menu.js');
|
||||
const menu = Menu.buildFromTemplate(template)
|
||||
Menu.setApplicationMenu(menu)
|
||||
|
||||
createWindow();
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue