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

Method isValid

lib/modAssist_window_lib.js:424–426  ·  view source on GitHub ↗

* Check if a window name exist, the window exists, and it's not destroyed * @param {string} name window * @returns {boolean}

(name)

Source from the content-addressed store, hash-verified

422 * @returns {boolean}
423 */
424 isValid(name) {
425 return ( Object.hasOwn(this.win, name) && this.win[name] !== null && !this.win[name].isDestroyed() && !this.win[name].webContents.isLoading() )
426 }
427
428 /**
429 * Check if a window is always on top

Callers 15

toggleMiniWindowFunction · 0.80
modAssist_main.jsFile · 0.80
isAlwaysOnTopMethod · 0.80
toggleAlwaysOnTopMethod · 0.80
safeCloseMethod · 0.80
closeAllSubWinMethod · 0.80
forceFocusMethod · 0.80
raiseOrOpenMethod · 0.80
destroyAndFocusMethod · 0.80
destroyAndFocusMultiMethod · 0.80
sendToValidWindowMethod · 0.80
sendAndFocusValidMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected