This commit is contained in:
Vendicated
2023-04-09 03:06:19 +02:00
parent 805b6fbcc4
commit e265e70fb9
6 changed files with 40 additions and 6 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
import { app, ipcRenderer } from "electron";
import { ipcRenderer } from "electron";
import type { Settings } from "shared/settings";
import type { LiteralUnion } from "type-fest";
import { IpcEvents } from "../shared/IpcEvents";
@@ -14,7 +14,7 @@ function sendSync<T = any>(event: IpcEvents, ...args: any[]) {
export const VencordDesktopNative = {
app: {
relaunch: () => invoke<void>(IpcEvents.RELAUNCH),
getVersion: () => app.getVersion()
getVersion: () => sendSync<void>(IpcEvents.GET_VERSION)
},
fileManager: {
showItemInFolder: (path: string) => invoke<void>(IpcEvents.SHOW_ITEM_IN_FOLDER, path),