remove duplicity and simplify AppUpdaterEvent

This commit is contained in:
Zamitto 2024-06-02 02:21:03 -03:00
parent b742a464c9
commit 7ebd91a652
4 changed files with 11 additions and 20 deletions

View file

@ -1,4 +1,4 @@
import { AppUpdaterEvents } from "@types";
import { AppUpdaterEvent } from "@types";
import { registerEvent } from "../register-event";
import updater, { UpdateInfo } from "electron-updater";
import { WindowManager } from "@main/services";
@ -6,7 +6,7 @@ import { app } from "electron";
const { autoUpdater } = updater;
const sendEvent = (event: AppUpdaterEvents) => {
const sendEvent = (event: AppUpdaterEvent) => {
WindowManager.mainWindow?.webContents.send("autoUpdaterEvent", event);
};