Merge pull request #10 from vector-im/dbkr/electron_api_updates

Electron API Updates
This commit is contained in:
David Baker 2019-12-10 18:16:00 +00:00 committed by GitHub
commit dcaa6a886b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 6 deletions

View File

@ -180,7 +180,7 @@ process.on('uncaughtException', function(error) {
let focusHandlerAttached = false;
ipcMain.on('setBadgeCount', function(ev, count) {
app.setBadgeCount(count);
app.badgeCount = count;
if (count === 0 && mainWindow) {
mainWindow.flashFrame(false);
}
@ -543,8 +543,6 @@ app.on('ready', async () => {
callback({
path: absTarget,
});
}, (error) => {
if (error) console.error('Failed to register protocol');
});
if (argv['no-update']) {

View File

@ -66,10 +66,9 @@ const template = [
// macOS has specific menu conventions...
if (process.platform === 'darwin') {
// first macOS menu is the name of the app
const name = app.getName();
template.unshift({
label: name,
// first macOS menu is the name of the app
label: app.name,
submenu: [
{ role: 'about' },
{ type: 'separator' },