MCPcopy Create free account
hub / github.com/FSGModding/FSG_Mod_Assistant / destroyAndFocusMulti

Method destroyAndFocusMulti

lib/modAssist_window_lib.js:528–537  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

526 }
527
528 destroyAndFocusMulti () {
529 this.multiWin = this.multiWin.filter((x) => !x.isDestroyed())
530 if ( this.isValid('main') ) {
531 if ( !this.isVisible('main') && this.isValid('mini') && this.isVisible('mini') ) {
532 this.win.mini.focus()
533 } else {
534 this.win.main.focus()
535 }
536 }
537 }
538
539 /**
540 * Send a command to a window (unsafe, no checks)

Callers 1

createNamedMultiMethod · 0.80

Calls 2

isValidMethod · 0.80
isVisibleMethod · 0.80

Tested by

no test coverage detected