main

main

Source:
Author:
  • yafp

Contains the main.js code of media-dupes

Methods

(static) createMenuMain()

Creates the menu for the main UI

Source:

Creates the menu for the main UI

(static) createWindowDistraction()

creates the window for distraction mode

Source:

creates the window for distraction mode

(static) createWindowMain()

Creates the mainWindow

Source:

Creates the mainWindow (restores window position and size of possible)

(static) createWindowSettings()

Manages the BrowserWindow for the Settings UI

Source:

Manages the BrowserWindow for the Settings UI

(static) doLog(type, message)

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

(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) powerMonitorInit()

Initialized a powermonitor after the app is ready

Source:

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

Source:

Used to tell the renderer to display a notification