re-add file verification

This commit is contained in:
MathieuG-P
2023-01-25 23:44:38 +01:00
parent 310dfb94c2
commit 8e33214fd0
4 changed files with 21 additions and 18 deletions
@@ -43,9 +43,12 @@ export function BsVersionItem(props: {version: BSVersion}) {
const cancel = () => {
const versionDownload = downloaderService.currentBsVersionDownload$.value;
const wasVerification = downloaderService.isVerification;
downloaderService.cancelDownload().then(async res => {
if(!res.success){ return; }
bsUninstallerService.uninstall(versionDownload).then(res => res && verionManagerService.askInstalledVersions());
if(!wasVerification){
bsUninstallerService.uninstall(versionDownload).then(res => res && verionManagerService.askInstalledVersions());
}
});
}