feat: add logs

This commit is contained in:
Zamitto 2024-07-12 21:17:20 -03:00
parent 46b12f2bc2
commit 198a283752
3 changed files with 26 additions and 5 deletions

View file

@ -20,6 +20,8 @@ autoUpdater.setFeedURL({
autoUpdater.logger = logger;
logger.log("Init Hydra");
const gotTheLock = app.requestSingleInstanceLock();
if (!gotTheLock) app.quit();
@ -121,6 +123,7 @@ app.on("window-all-closed", () => {
app.on("before-quit", () => {
/* Disconnects libtorrent */
PythonInstance.kill();
logger.log("Quit Hydra");
});
app.on("activate", () => {