Skip to content

Commit

Permalink
add ability to add multiple custom mods at once
Browse files Browse the repository at this point in the history
  • Loading branch information
SenkJu committed Dec 28, 2023
1 parent 62412f6 commit 1ef7661
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/lib/main/MainScreen.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -252,13 +252,17 @@
const selected = await dialogOpen({
directory: false,
multiple: false,
multiple: true,
filters: [{ name: "", extensions: ["jar"] }],
title: "Select a custom mod to install"
});
if (selected) {
await invoke("install_custom_mod", { branch, mcVersion, path: selected });
for (const path of selected) {
await invoke("install_custom_mod", { branch, mcVersion, path });
}
requestMods();
}
}
Expand Down

0 comments on commit 1ef7661

Please sign in to comment.