* Remove menu from the given window. * * @param windowId The window id.
(windowId: number)
| 226 | * @param windowId The window id. |
| 227 | */ |
| 228 | removeWindowMenu(windowId: number): void { |
| 229 | // NOTE: Shortcut handler is automatically unregistered when window is closed. |
| 230 | const { activeWindowId } = this |
| 231 | this.windowMenus.delete(windowId) |
| 232 | if (activeWindowId === windowId) { |
| 233 | this.activeWindowId = -1 |
| 234 | } |
| 235 | } |
| 236 | |
| 237 | /** |
| 238 | * Returns the window menu. |