MCPcopy Create free account
hub / github.com/FlashpointProject/launcher / onAppActivate

Function onAppActivate

src/main/Main.ts:399–405  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

397 }
398
399 function onAppActivate(): void {
400 // On OS X it's common to re-create a window in the app when the
401 // dock icon is clicked and there are no other windows open.
402 if (!state.window) {
403 state.window = createMainWindow();
404 }
405 }
406
407 function onAppSecondInstance(event: Electron.Event, argv: string[]): void {
408 if (state.window) {

Callers

nothing calls this directly

Calls 1

createMainWindowFunction · 0.85

Tested by

no test coverage detected