fix all sorts of zip stuff

This commit is contained in:
SpikeHD
2022-08-25 18:57:24 -07:00
parent 01fce477ef
commit defc1b43bd
4 changed files with 30 additions and 44 deletions

View File

@@ -78,13 +78,16 @@ export default class DownloadHandler {
// Extraction events
listen('extract_start', ({ payload }) => {
// Find the download that is no extracting and set it's status as such
const index = this.downloads.findIndex((download) => download.path === payload)
// @ts-expect-error Too lazy to make an interface for payloads rn
const index = this.downloads.findIndex((download) => download.path === payload.file)
this.downloads[index].status = 'extracting'
})
listen('extract_end', ({ payload }) => {
console.log(payload)
// Find the download that is no extracting and set it's status as such
const index = this.downloads.findIndex((download) => download.path === payload)
// @ts-expect-error Too lazy to make an interface for payloads rn
const index = this.downloads.findIndex((download) => download.path === payload.file)
this.downloads[index].status = 'finished'
})
}