Add mods download

This commit is contained in:
Thoronium
2023-04-07 02:15:17 -06:00
parent 3356bddb42
commit d7b2aa25cc
17 changed files with 116 additions and 14 deletions

View File

@@ -117,6 +117,10 @@ export default class DownloadHandler {
downloadingRepo() {
return this.downloads.some((d) => d.path.includes('grasscutter_repo.zip'))
}
downloadingMigoto() {
return this.downloads.some((d) => d.path.includes('3dmigoto'))
}
addDownload(url: string, path: string, onFinish?: () => void) {
// Begin download from rust backend, don't add if the download addition fails