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,8 +308,6 @@ 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;
@ -317,7 +315,6 @@ namespace hex::plugin::builtin {
m_download = m_httpRequest.downloadFile(fullPath);
break;
}
}
if (!downloading) {
ui::ToastError::open("hex.builtin.view.store.download_error"_lang);