1
0
mirror of synced 2024-11-14 19:17:42 +01:00

store: Fixed downloading when installed using installer

This commit is contained in:
WerWolv 2021-11-28 14:21:59 +01:00
parent efad16f2c0
commit 1d3736b98c

View File

@ -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)) {