From e8be80cc3e174a52169685a4d3698419e7418f9a Mon Sep 17 00:00:00 2001 From: James Date: Fri, 27 Dec 2024 16:51:38 +0700 Subject: [PATCH] fix: using engine variant name for download task id --- engine/services/engine_service.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/engine/services/engine_service.cc b/engine/services/engine_service.cc index 93311f98b..d908aba1b 100644 --- a/engine/services/engine_service.cc +++ b/engine/services/engine_service.cc @@ -8,7 +8,6 @@ #include "database/engines.h" #include "extensions/remote-engine/remote_engine.h" #include "utils/archive_utils.h" -#include "utils/cpuid/cpu_info.h" #include "utils/engine_constants.h" #include "utils/engine_matcher_utils.h" #include "utils/file_manager_utils.h" @@ -364,10 +363,10 @@ cpp::result EngineService::DownloadEngine( }; auto downloadTask = - DownloadTask{.id = engine, + DownloadTask{.id = selected_variant->name, .type = DownloadType::Engine, .items = {DownloadItem{ - .id = engine, + .id = selected_variant->name, .downloadUrl = selected_variant->browser_download_url, .localPath = variant_path, }}};