From 555ba667df0c783ce2f96050d29a7cc258db6b53 Mon Sep 17 00:00:00 2001 From: Wouter Jansen Date: Thu, 13 Jan 2022 15:44:42 +0100 Subject: [PATCH] Fixed issues related to quick-resume causing removal of files not working --- app/cancel.js | 2 +- app/remove.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/cancel.js b/app/cancel.js index 90a0006..1498058 100644 --- a/app/cancel.js +++ b/app/cancel.js @@ -53,7 +53,7 @@ $(() => { function onCancelAndRemoveButtonPress() { try{ rimraf.sync(installerPath); - rimraf.sync(path.join(app.getPath('userData'), 'PRBF2DownloadAssistantFiles')); + rimraf.sync(path.join(app.getPath('userData'), 'TorrentFiles',"*")); }catch(err){ console.log(err) } diff --git a/app/remove.js b/app/remove.js index efc814d..259656a 100644 --- a/app/remove.js +++ b/app/remove.js @@ -46,7 +46,7 @@ $(() => { function onRemoveButtonPress() { try{ - rimraf.sync(path.join(app.getPath('userData'), 'PRBF2DownloadAssistantFiles')); + rimraf.sync(path.join(app.getPath('userData'), 'TorrentFiles',"*")); rimraf.sync(installerPath); }catch(err){ console.log(err)