mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-10-16 16:17:14 +08:00
fix(system-tray): prevent duplicate menu item on darwin
This commit is contained in:
parent
d28e84d95a
commit
4a4c60bafc
1 changed files with 8 additions and 7 deletions
|
@ -30,13 +30,14 @@ const menuTemplate = [
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
const _buildMenu = (platform)=> {
|
if (process.platform === 'darwin') {
|
||||||
if (platform === 'darwin') {
|
|
||||||
menuTemplate.unshift({
|
menuTemplate.unshift({
|
||||||
label: 'Open inbox',
|
label: 'Open inbox',
|
||||||
click: ()=> atom.focus(),
|
click: ()=> atom.focus(),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const _buildMenu = ()=> {
|
||||||
return Menu.buildFromTemplate(menuTemplate);
|
return Menu.buildFromTemplate(menuTemplate);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue