Methods
(static) checkNetworkConnectivity()
Checks if internet is accessible
Checks if the internet is accessible, if not triggers an error in the mainWindow
(static) createMenu()
Creates the application menu
Creates the application menu
(static) createTray()
Creates the tray of the app
Creates the tray and the related menu.
(static) createWindow()
Creates the main window of the app
Creates the main window, restores window position and size of possible
(static) createWindowConfig()
Creates the config window of the app
Creates the config window
(static) forceSingleAppInstance()
Takes care that there is only 1 instance of this app running
Takes care that there is only 1 instance of this app running
(static) showDialog(dialogType, dialogTitle, dialogMessage, dialogDetail)
Shows a dialog
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
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 |