same if for validation process, and temporary finish event for validation process

This commit is contained in:
MathieuG-P
2022-06-12 22:59:56 +02:00
parent ecfcf18bc5
commit bd0a05e0fd
+3 -2
View File
@@ -107,10 +107,10 @@ export class BSInstallerService{
else if(out[0] === DownloadEventType.TWO_FA_CODE){
this.utils.ipcSend(`bs-download.${DownloadEventType.GUARD_CODE}`);
}
else if(out[0] === DownloadEventType.PROGESS){
else if(out[0] === DownloadEventType.PROGESS || (out[0] === DownloadEventType.VALIDATION && parseFloat(out[1]) < 100)){
this.utils.ipcSend(`bs-download.${DownloadEventType.PROGESS}`, parseFloat(out[1]));
}
else if(out[0] === DownloadEventType.FINISH){
else if(out[0] === DownloadEventType.FINISH || (out[0] === DownloadEventType.VALIDATION && parseFloat(out[1]) == 100)){
this.utils.ipcSend(`bs-download.${DownloadEventType.FINISH}`); this.downloadProcess.kill();
}
else if(out[0] === DownloadEventType.ERROR){
@@ -157,6 +157,7 @@ export enum DownloadEventType{
GUARD_CODE = "[Guard]",
TWO_FA_CODE = "[2FA]",
PROGESS = "[Progress]",
VALIDATION = "[Validated]",
FINISH = "[Finished]",
ALREADY_DOAWNLOADING = "[AlreadyDownloading]",
ERROR = "[Error]",