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

Method constructor

lib/modAssist_window_lib.js:285–301  ·  view source on GitHub ↗

* create new windowing library * MARK: constructor

()

Source from the content-addressed store, hash-verified

283 * MARK: constructor
284 */
285 constructor() {
286 this.loading = new loadingWindow(this, 'main')
287 serveIPC.loadWindow = this.loading
288 serveIPC.loadJSON = new loadingWindow(this, 'importjson')
289
290 this.populateContextIcons()
291
292 nativeTheme.on('updated', () => {
293 this.changeTheme()
294 this.populateContextIcons()
295 this.trayContextMenu()
296
297 if ( this.#settings.get('color_theme') === 'system' ) {
298 this.themeUpdater()
299 }
300 })
301 }
302
303 /**
304 * Get native image icon for context menus

Callers

nothing calls this directly

Calls 5

populateContextIconsMethod · 0.80
changeThemeMethod · 0.80
trayContextMenuMethod · 0.80
themeUpdaterMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected