remove test download button

This commit is contained in:
SpikeHD
2022-05-14 00:47:30 -07:00
parent 530990b38f
commit 3c68b67aff
5 changed files with 82 additions and 26 deletions

View File

@@ -63,6 +63,16 @@ export default class DownloadHandler {
getDownloads() {
return this.downloads
}
downloadingJar() {
// Kinda hacky but it works
return this.downloads.some(d => d.path.includes('grasscutter'))
}
downloadingResources() {
// Kinda hacky but it works
return this.downloads.some(d => d.path.includes('resources'))
}
addDownload(url: string, path: string) {
// Begin download from rust backend, don't add if the download addition fails