fix: Allow store to properly update files

This commit is contained in:
WerWolv 2023-12-28 20:59:25 +01:00
parent db72ba295a
commit 8fcf08132e
1 changed files with 5 additions and 8 deletions

View File

@ -308,15 +308,12 @@ namespace hex::plugin::builtin {
return false;
}
log::info("{} file {}", update ? "Updating" : "Downloading", fullPath.string());
if (!update || wolv::io::fs::exists(fullPath)) {
downloading = true;
m_downloadPath = fullPath;
downloading = true;
m_downloadPath = fullPath;
m_httpRequest.setUrl(url);
m_download = m_httpRequest.downloadFile(fullPath);
break;
}
m_httpRequest.setUrl(url);
m_download = m_httpRequest.downloadFile(fullPath);
break;
}
if (!downloading) {