mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: change selectFolderModal to a section inside repacksModal
This commit is contained in:
parent
5db7b97090
commit
433e00bb50
8 changed files with 101 additions and 158 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue