MCPcopy
hub / github.com/marktext/marktext / _createSettingWindow

Method _createSettingWindow

packages/desktop/src/main/app/index.ts:495–502  ·  view source on GitHub ↗

* Create a new setting window.

(category?: string | null)

Source from the content-addressed store, hash-verified

493 * Create a new setting window.
494 */
495 private _createSettingWindow(category?: string | null): void {
496 const setting = new SettingWindow(this._accessor)
497 setting.createWindow(category ?? null)
498 this._windowManager.add(setting)
499 if (this._windowManager.windowCount === 1) {
500 this._accessor.menu.setActiveWindow(setting.id)
501 }
502 }
503
504 private _openFilesToOpen(): void {
505 this._openPathList(this._openFilesCache, false)

Callers 1

_openSettingsWindowMethod · 0.95

Calls 3

createWindowMethod · 0.95
setActiveWindowMethod · 0.65
addMethod · 0.45

Tested by

no test coverage detected