mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
remove duplicity and simplify AppUpdaterEvent
This commit is contained in:
parent
b742a464c9
commit
7ebd91a652
4 changed files with 11 additions and 20 deletions
|
@ -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);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue