MCPcopy
hub / github.com/marktext/marktext / bringToFront

Method bringToFront

packages/desktop/src/main/windows/base.ts:85–92  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

83 }
84
85 bringToFront(): void {
86 const { browserWindow: win } = this
87 if (!win) return
88 if (win.isMinimized()) win.restore()
89 if (!win.isVisible()) win.show()
90 win.focus()
91 win.moveTop()
92 }
93
94 reload(): void {
95 this.browserWindow?.reload()

Callers 3

createWindowMethod · 0.80
initMethod · 0.80
_openPathListMethod · 0.80

Calls 2

showMethod · 0.45
focusMethod · 0.45

Tested by

no test coverage detected