main

main

Source:
Author:
  • yafp

Contains all main code

Methods

(static) checkNetworkConnectivity()

Checks if internet is accessible

Source:

Checks if the internet is accessible, if not triggers an error in the mainWindow

(static) createMenu()

Creates the application menu

Source:

Creates the application menu

(static) createTray()

Creates the tray of the app

Source:

Creates the tray and the related menu.

(static) createWindow()

Creates the main window of the app

Source:

Creates the main window, restores window position and size of possible

(static) createWindowConfig()

Creates the config window of the app

Source:

Creates the config window

(static) forceSingleAppInstance()

Takes care that there is only 1 instance of this app running

Source:

Takes care that there is only 1 instance of this app running

(static) showDialog(dialogType, dialogTitle, dialogMessage, dialogDetail)

Shows a dialog

Source:

Displays a dialog - see https://electronjs.org/docs/api/dialog

Parameters:
Name Type Description
dialogType string

Can be "none", "info", "error", "question" or "warning"

dialogTitle string

The title text

dialogMessage string

The message of the dialog

dialogDetail string

The detail text

(static) writeLog(type, message, optionalObject)

Writes console output for the main process

Source:

Writes console output for the main process

Parameters:
Name Type Description
type string

The log type

message string

The log message

optionalObject string

An optional object which might contain additional informations