diff --git a/buildAssets/icons/icon16.png b/buildAssets/icons/icon16.png new file mode 100644 index 0000000..ae51b51 Binary files /dev/null and b/buildAssets/icons/icon16.png differ diff --git a/src/main/MainRunner.ts b/src/main/MainRunner.ts index 2055ef0..1ccc8ee 100644 --- a/src/main/MainRunner.ts +++ b/src/main/MainRunner.ts @@ -1,4 +1,4 @@ -import { app, BrowserWindow, RenderProcessGoneDetails } from 'electron' +import { app, BrowserWindow, Menu, RenderProcessGoneDetails, Tray } from 'electron' import Constants from './utils/Constants' import IPCs from './IPCs' @@ -49,6 +49,8 @@ export const createMainWindow = async (mainWindow: BrowserWindow): Promise { + mainWindow.show(); + } + }, + { + label: 'Hide App', + click: () => { + mainWindow.hide(); + } + }, + { + label: 'Exit', + click: () => { + app.quit(); + } + } + ]); + tray.setToolTip('Vutron App'); + tray.setContextMenu(contextMenu); +}