* copied tray from old thread

* added visibility changer to tray
This commit is contained in:
Myzel394
2021-11-14 12:36:39 +00:00
committed by GitHub
parent 8996f35cc0
commit fcc0a80f4e
4 changed files with 126 additions and 3 deletions

View File

@@ -4,6 +4,7 @@ const {app, globalShortcut} = require('electron');
const sqlInit = require('./src/services/sql_init');
const appIconService = require('./src/services/app_icon');
const windowService = require('./src/services/window');
const tray = require('./src/services/tray');
// Adds debug features like hotkeys for triggering dev tools and reload
require('electron-debug')();
@@ -35,6 +36,8 @@ app.on('ready', async () => {
await windowService.createSetupWindow();
}
tray.createTray()
await windowService.registerGlobalShortcuts();
});