MCPcopy
hub / github.com/marktext/marktext / removeWindowMenu

Method removeWindowMenu

packages/desktop/src/main/menu/index.ts:228–235  ·  view source on GitHub ↗

* Remove menu from the given window. * * @param windowId The window id.

(windowId: number)

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 1

deleteMethod · 0.80

Tested by

no test coverage detected