Commit a48cc933 authored by Luke Schoen's avatar Luke Schoen
Browse files

review-fix: Only show Help > About on macOS where it is supported

parent 76ae2e86
Pipeline #44433 canceled with stage
......@@ -162,11 +162,9 @@ const getContextWindowMenuTemplate = fetherApp => {
// Remove File and Help menus in taskbar mode for window context menu
template.shift();
template.pop();
template.push();
template.push({
role: 'help',
submenu: [
{ role: 'about' },
{
label: 'Learn More',
click () {
......@@ -175,6 +173,11 @@ const getContextWindowMenuTemplate = fetherApp => {
}
]
});
if (process.platform === 'darwin') {
template[2].submenu.push({ role: 'about' });
}
template.push({ label: 'Quit', role: 'quit' });
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment