Minor cleanup and add sentry.

This commit is contained in:
Patrick Fic
2025-03-31 13:03:31 -07:00
parent 38cdb1e04c
commit eeaeba2252
12 changed files with 3921 additions and 131 deletions

View File

@@ -1,8 +1,10 @@
import { app, ipcMain } from "electron";
import log from "electron-log/main";
import { autoUpdater } from "electron-updater";
import path from "path";
import ipcTypes from "../../util/ipcTypes.json";
import ImportJob from "../decoder/decoder";
import store from "../store/store";
import { StartWatcher, StopWatcher } from "../watcher/watcher";
import {
SettingsWatchedFilePathsAdd,
@@ -12,7 +14,6 @@ import {
SettingsWatcherPollingSet,
} from "./ipcMainHandler.settings";
import { ipcMainHandleAuthStateChanged } from "./ipcMainHandler.user";
import { autoUpdater } from "electron-updater";
// Log all IPC messages and their payloads
const logIpcMessages = (): void => {
@@ -88,6 +89,9 @@ ipcMain.handle(
ipcTypes.toMain.settings.watcher.setpolling,
SettingsWatcherPollingSet,
);
ipcMain.handle(ipcTypes.toMain.user.getActiveShop, () => {
return store.get("app.bodyshop.shopname");
});
//Watcher Handlers
ipcMain.on(ipcTypes.toMain.watcher.start, () => {