mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 03:29:02 +01:00 
			
		
		
		
	Merge remote-tracking branch 'origin/master'
This commit is contained in:
		
						commit
						0a02e5be83
					
				| @ -23,7 +23,7 @@ Ukraine is currently defending itself from Russian aggression, please consider [ | ||||
|   * there's a [3rd party service for hosting synchronisation server](https://trilium.cc/paid-hosting) | ||||
| * [Sharing](https://github.com/zadam/trilium/wiki/Sharing) (publishing) notes to public internet | ||||
| * Strong [note encryption](https://github.com/zadam/trilium/wiki/Protected-notes) with per-note granularity | ||||
| * Sketching diagrams with bult-in Excalidraw (note type "canvas") | ||||
| * Sketching diagrams with built-in Excalidraw (note type "canvas") | ||||
| * [Relation maps](https://github.com/zadam/trilium/wiki/Relation-map) and [link maps](https://github.com/zadam/trilium/wiki/Link-map) for visualizing notes and their relations | ||||
| * [Scripting](https://github.com/zadam/trilium/wiki/Scripts) - see [Advanced showcases](https://github.com/zadam/trilium/wiki/Advanced-showcases) | ||||
| * [REST API](https://github.com/zadam/trilium/wiki/ETAPI) for automation | ||||
|  | ||||
							
								
								
									
										10
									
								
								electron.js
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								electron.js
									
									
									
									
									
								
							| @ -1,6 +1,6 @@ | ||||
| 'use strict'; | ||||
| 
 | ||||
| const {app, globalShortcut} = require('electron'); | ||||
| const {app, globalShortcut, BrowserWindow} = require('electron'); | ||||
| const sqlInit = require('./src/services/sql_init'); | ||||
| const appIconService = require('./src/services/app_icon'); | ||||
| const windowService = require('./src/services/window'); | ||||
| @ -32,6 +32,14 @@ app.on('ready', async () => { | ||||
| 
 | ||||
|         await windowService.createMainWindow(app); | ||||
| 
 | ||||
|         if (process.platform === 'darwin') { | ||||
|             app.on('activate', async () => { | ||||
|                 if (BrowserWindow.getAllWindows().length === 0) { | ||||
|                     await windowService.createMainWindow(app); | ||||
|                 } | ||||
|             }); | ||||
|         } | ||||
| 
 | ||||
|         tray.createTray(); | ||||
|     } | ||||
|     else { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 zadam
						zadam