From 1d3736b98cf20e22270534c5be5cfe00c22f2f2d Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sun, 28 Nov 2021 14:21:59 +0100 Subject: [PATCH] store: Fixed downloading when installed using installer --- source/views/view_store.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/views/view_store.cpp b/source/views/view_store.cpp index 2cfb3f3f3..73f661f65 100644 --- a/source/views/view_store.cpp +++ b/source/views/view_store.cpp @@ -249,7 +249,7 @@ namespace hex { void ViewStore::download(ImHexPath pathType, const std::string &fileName, const std::string &url, bool update) { if (!update) { - this->m_downloadPath = hex::getPath(pathType).front() / fs::path(fileName); + this->m_downloadPath = hex::getPath(pathType).back() / fs::path(fileName); this->m_download = this->m_net.downloadFile(url, this->m_downloadPath); } else { for (const auto &path : hex::getPath(pathType)) {