mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-29 02:11:28 -06:00
ELECTRON-1003: fix menuitems with roles default (#546)
This commit is contained in:
parent
a206b567c2
commit
0d1618a36e
@ -528,8 +528,8 @@ function buildMenuItem(role, label) {
|
||||
}
|
||||
|
||||
if (isWindowsOS) {
|
||||
return label ? { role: role, label: label, accelerator: windowsAccelerator[role] || '' }
|
||||
: { role: role, accelerator: windowsAccelerator[role] || '' }
|
||||
return label ? { role: role, label: label, accelerator: windowsAccelerator[role] || '', registerAccelerator: true }
|
||||
: { role: role, accelerator: windowsAccelerator[role] || '', registerAccelerator: true }
|
||||
}
|
||||
|
||||
return label ? { role: role, label: label } : { role: role }
|
||||
|
Loading…
Reference in New Issue
Block a user