mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-11 13:56:16 +00:00
11 lines
379 B
TypeScript
11 lines
379 B
TypeScript
import { registerEvent } from "../register-event";
|
|
import { CommonRedistManager } from "@main/services/common-redist-manager";
|
|
|
|
const installCommonRedist = async (_event: Electron.IpcMainInvokeEvent) => {
|
|
if (await CommonRedistManager.canInstallCommonRedist()) {
|
|
CommonRedistManager.installCommonRedist();
|
|
}
|
|
};
|
|
|
|
registerEvent("installCommonRedist", installCommonRedist);
|