feature/IO-3205-Paint-Scale-Integrations: Checkpoint

This commit is contained in:
Dave Richer
2025-04-28 11:29:35 -04:00
parent cf8a19575f
commit fb24eafcc8
4 changed files with 33 additions and 21 deletions

View File

@@ -10,12 +10,8 @@ import {
StartWatcher,
StopWatcher,
} from "../watcher/watcher";
import { PaintScaleConfig } from "./paintScale";
interface PaintScaleConfig {
id: string;
path: string | null;
type: string;
}
// Initialize paint scale input configs in store if not set
if (!Store.get("settings.paintScaleInputConfigs")) {
@@ -136,7 +132,7 @@ const SettingEmsOutFilePathSet = async (): Promise<string> => {
};
const SettingsPaintScaleInputConfigsGet = async (
_event: IpcMainInvokeEvent,
_event?: IpcMainInvokeEvent,
): Promise<PaintScaleConfig[]> => {
try {
const configs = Store.get("settings.paintScaleInputConfigs") as PaintScaleConfig[];
@@ -188,7 +184,7 @@ const SettingsPaintScaleInputPathSet = async (
};
const SettingsPaintScaleOutputConfigsGet = async (
_event: IpcMainInvokeEvent,
_event?: IpcMainInvokeEvent,
): Promise<PaintScaleConfig[]> => {
try {
const configs = Store.get("settings.paintScaleOutputConfigs") as PaintScaleConfig[];