diff --git a/frontend/src/components/GameGallery/Card/Base.vue b/frontend/src/components/GameGallery/Card/Base.vue
index ac3e789ef..43d09ac1b 100644
--- a/frontend/src/components/GameGallery/Card/Base.vue
+++ b/frontend/src/components/GameGallery/Card/Base.vue
@@ -1,16 +1,17 @@
-
-
diff --git a/frontend/src/services/download.js b/frontend/src/services/download.js
index cb89872fb..4ad652f5d 100644
--- a/frontend/src/services/download.js
+++ b/frontend/src/services/download.js
@@ -1,8 +1,11 @@
import JSZip from "jszip"
import { saveAs } from 'file-saver'
+import { storeDownloader } from '@/stores/downloader.js'
+const downloader = storeDownloader()
export async function downloadRom(rom, emitter, filesToDownload=[]) {
+ downloader.add(rom.file_name)
emitter.emit('snackbarScan', {'msg': "Downloading "+rom.file_name+"...", 'icon': 'mdi-download', 'color': 'green'})
if(rom.multi){
const zip = new JSZip()
@@ -27,6 +30,7 @@ export async function downloadRom(rom, emitter, filesToDownload=[]) {
var fileBlob = await file.blob()
saveAs(fileBlob, rom.file_name)
}
+ downloader.remove(rom.file_name)
}
export async function downloadSave(rom) { console.log("Downloading "+rom.file_name+" save file") }
\ No newline at end of file
diff --git a/frontend/src/stores/downloader.js b/frontend/src/stores/downloader.js
new file mode 100644
index 000000000..12e45d4fe
--- /dev/null
+++ b/frontend/src/stores/downloader.js
@@ -0,0 +1,10 @@
+import { defineStore } from 'pinia'
+
+export const storeDownloader = defineStore('downloader', {
+ state: () => ({ value: [] }),
+
+ actions: {
+ add(rom) { this.value.push(rom) },
+ remove(rom) { this.value.splice(this.value.indexOf(rom), 1) }
+ }
+})
\ No newline at end of file
diff --git a/frontend/src/views/Home.vue b/frontend/src/views/Home.vue
index 42f10065b..409d1cdbd 100644
--- a/frontend/src/views/Home.vue
+++ b/frontend/src/views/Home.vue
@@ -1,6 +1,6 @@