Added support chat and sentry ignore messages.

This commit is contained in:
Patrick Fic
2023-10-13 11:29:18 -07:00
parent fc89c4429d
commit fd989bf7e4
9 changed files with 57 additions and 9 deletions

View File

@@ -63,7 +63,7 @@ ipcMain.on(
);
const newFilePaths = store.get("filePaths");
console.log("newFilePaths", newFilePaths);
//console.log("newFilePaths", newFilePaths);
event.sender.send(
ipcTypes.default.fileWatcher.toRenderer.filepathsList,

View File

@@ -70,8 +70,13 @@ async function StartWatcher() {
.on("error", function (error) {
log.error("Error in Watcher", error);
const b = BrowserWindow.getFocusedWindow();
b.webContents.send(ipcTypes.default.fileWatcher.toRenderer.error, error);
// Nucleus.track("WATCHER_ERROR", error);
if (b) {
b.webContents.send(
ipcTypes.default.fileWatcher.toRenderer.error,
error
);
}
// Nucleus.track("WATCHER_ERROR", error);
})
.on("ready", onWatcherReady)
.on("raw", function (event, path, details) {
@@ -111,6 +116,6 @@ exports.StopWatcher = StopWatcher;
exports.watcher = watcher;
async function HandleNewFile(path) {
// Nucleus.track("IMPORT_JOB_FROM_WATCHER");
// Nucleus.track("IMPORT_JOB_FROM_WATCHER");
await ImportJob(path);
}