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