mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-30 18:05:55 +01:00 
			
		
		
		
	Add tray (#2325)
* copied tray from old thread * added visibility changer to tray
This commit is contained in:
		| @@ -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(); | ||||
| }); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user