TagSpaces is an offline, open source, document manager with tagging support
fix: issue with not initilized mainwindow
Ilian Sapundshiev556ed2784f4a
diff --git a/src/main/main.ts b/src/main/main.tsindex f6ed9a136..53fa48b71 100644--- a/src/main/main.ts+++ b/src/main/main.ts@@ -638,7 +638,9 @@ appipcMain.on('watchFolder', (e, path: string, depth) => {//locationPath, options) => {-+ if (!mainWindow) {+ throw new Error('"mainWindow" is not defined');+ }watchFolder(mainWindow, e, path, depth);//watcher = chokidar.watch(locationPath, options);});@@ -687,6 +689,9 @@ app});ipcMain.on('setZoomFactor', (event, zoomLevel) => {+ if (!mainWindow) {+ throw new Error('"mainWindow" is not defined');+ }mainWindow.webContents.setZoomFactor(zoomLevel);});