From 185cfba7fda4dc683acec8b2ecbd15838d3022f5 Mon Sep 17 00:00:00 2001 From: Marek Rusinowski Date: Mon, 17 Aug 2026 20:26:40 +0200 Subject: [PATCH] Call rapid and http search only when there are matching entries (#70) This allows to download maps without triggering refresh of rapid repos. --- src/pr-downloader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pr-downloader.cpp b/src/pr-downloader.cpp index 727ad6fb..b0bb5578 100644 --- a/src/pr-downloader.cpp +++ b/src/pr-downloader.cpp @@ -146,8 +146,8 @@ bool search(std::vector& items, std::list& searc return false; } } - return rapidDownload->search(searchres, rapid_search) && - httpDownload->search(searchres, http_search); + return (rapid_search.empty() || rapidDownload->search(searchres, rapid_search)) && + (http_search.empty() || httpDownload->search(searchres, http_search)); } int DownloadSearch(std::vector& items)