From 8fcf08132e7fb39bfcce5a5737ee90ae6ab135a6 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Thu, 28 Dec 2023 20:59:25 +0100 Subject: [PATCH] fix: Allow store to properly update files --- plugins/builtin/source/content/views/view_store.cpp | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/plugins/builtin/source/content/views/view_store.cpp b/plugins/builtin/source/content/views/view_store.cpp index 8a685dc32..d2745930a 100644 --- a/plugins/builtin/source/content/views/view_store.cpp +++ b/plugins/builtin/source/content/views/view_store.cpp @@ -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) {