feat: change selectFolderModal to a section inside repacksModal

This commit is contained in:
Hydra 2024-04-21 00:59:52 -03:00 committed by shadowtosser
parent 5db7b97090
commit 433e00bb50
8 changed files with 101 additions and 158 deletions

View file

@ -1,10 +1,9 @@
import checkDiskSpace from "check-disk-space";
import { registerEvent } from "../register-event";
import { getDownloadsPath } from "../helpers/get-downloads-path";
const getDiskFreeSpace = async (_event: Electron.IpcMainInvokeEvent) =>
checkDiskSpace(await getDownloadsPath());
const getDiskFreeSpace = async (_event: Electron.IpcMainInvokeEvent, path: string) =>
checkDiskSpace(path);
registerEvent(getDiskFreeSpace, {
name: "getDiskFreeSpace",