Prevent (re)start on install & uninstall

This commit is contained in:
Elian Doran 2023-11-08 21:56:02 +02:00
parent 2faee49bd9
commit b1e0492e05

View File

@ -1,6 +1,10 @@
'use strict';
const {app, globalShortcut, BrowserWindow} = require('electron');
// Prevent Trilium starting twice on first install and on uninstall for the Windows installer.
if (require('electron-squirrel-startup')) return;
const sqlInit = require('./src/services/sql_init');
const appIconService = require('./src/services/app_icon');
const windowService = require('./src/services/window');