Methods
(static) createMenuMain()
Creates the menu for the main UI
Creates the menu for the main UI
(static) createWindowDistraction()
creates the window for distraction mode
creates the window for distraction mode
(static) createWindowMain()
Creates the mainWindow
Creates the mainWindow (restores window position and size of possible)
(static) createWindowSettings()
Manages the BrowserWindow for the Settings UI
Manages the BrowserWindow for the Settings UI
(static) doLog(type, message)
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 |
(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) powerMonitorInit()
Initialized a powermonitor after the app is ready
Initialized a powermonitor after the app is ready. See: https://electronjs.org/docs/api/power-monitor
(static) powerMonitorNotify()
Used to tell the renderer to display a notification
Used to tell the renderer to display a notification