diff --git a/app/main/services/window-process-management-service.ts b/app/main/services/window-process-management-service.ts index 6f88daac..662b5ea5 100644 --- a/app/main/services/window-process-management-service.ts +++ b/app/main/services/window-process-management-service.ts @@ -10,6 +10,7 @@ import { } from "electron"; import os from "os"; import path, { join, posix } from "path"; +import fs from "fs"; import { errorcatching } from "@/base/error"; import { Eventable } from "@/base/event"; @@ -20,6 +21,7 @@ import { PreferenceService, } from "@/common/services/preference-service"; import { WindowStorage } from "@/main/window-storage"; +import { FileSystemService, IFileSystemService } from "./filesystem-service"; interface WindowOptions extends BrowserWindowConstructorOptions { entry: string; @@ -47,7 +49,8 @@ export class WindowProcessManagementService extends Eventable { const updatePref = (key: keyof IPreferenceStore, value: unknown) => { preferenceService.set({ [key]: value }); }; - -const onInsertMainCssCliecked = async () => { - await PLMainAPI.windowProcessManagementService.insertCustomCSS(Process.renderer, prefState.customMainWindowCSS); -}; - -const onInsertQuickPasteCssCliecked = async () => { - await PLMainAPI.windowProcessManagementService.insertCustomCSS(Process.quickpaste, prefState.customQuickPasteCSS); -};