fix: possible undefined on bottom-panel

This commit is contained in:
Zamitto
2025-02-02 20:53:31 -03:00
parent 6d1c8d165a
commit d1a1d3fc32
4 changed files with 549 additions and 80 deletions

View File

@@ -234,9 +234,9 @@ export class DownloadManager {
});
WindowManager.mainWindow?.setProgressBar(-1);
WindowManager.mainWindow?.webContents.send("on-download-progress", null);
if (downloadKey === this.downloadingGameId) {
WindowManager.mainWindow?.webContents.send("on-download-progress", null);
this.downloadingGameId = null;
}
}