MCPcopy
hub / github.com/marktext/marktext / addSettingMenu

Method addSettingMenu

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

* Add the settings menu to the given window. * * @param window The settings browser window.

(window: BrowserWindow)

Source from the content-addressed store, hash-verified

174 * @param window The settings browser window.
175 */
176 addSettingMenu(window: BrowserWindow): void {
177 const { windowMenus } = this
178 const menu = this._buildSettingMenu()
179 windowMenus.set(window.id, menu)
180 }
181
182 /**
183 * Add the editor menu to the given window.

Callers 1

createWindowMethod · 0.80

Calls 1

_buildSettingMenuMethod · 0.95

Tested by

no test coverage detected