(menus, pgAdminMainScreen, configStore, callbacks={})
| 181 | } |
| 182 | |
| 183 | function buildAndSetMenus(menus, pgAdminMainScreen, configStore, callbacks={}) { |
| 184 | mainMenu = buildMenu(menus, pgAdminMainScreen, configStore, callbacks); |
| 185 | if(isMac) { |
| 186 | Menu.setApplicationMenu(mainMenu); |
| 187 | } else { |
| 188 | pgAdminMainScreen.setMenu(mainMenu); |
| 189 | } |
| 190 | } |
| 191 | |
| 192 | export function refreshMenus(pgAdminMainScreen, configStore, callbacks={}) { |
| 193 | // cachedMenus is only populated once the renderer sends its menu definition |
no test coverage detected