MCPcopy
hub / github.com/agalwood/Motrix / toggleWindow

Method toggleWindow

src/main/ui/WindowManager.js:242–253  ·  view source on GitHub ↗
(page)

Source from the content-addressed store, hash-verified

240 }
241
242 toggleWindow (page) {
243 const window = this.getWindow(page)
244 if (!window) {
245 return
246 }
247
248 if (!window.isVisible() || window.isFullScreen()) {
249 window.show()
250 } else {
251 window.hide()
252 }
253 }
254
255 getFocusedWindow () {
256 return BrowserWindow.getFocusedWindow()

Callers 1

toggleMethod · 0.80

Calls 3

getWindowMethod · 0.95
showMethod · 0.80
hideMethod · 0.80

Tested by

no test coverage detected