mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
Prevent (re)start on install & uninstall
This commit is contained in:
parent
2faee49bd9
commit
b1e0492e05
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user