From 3f11a9d163025485ae3788069a8a1a83a798e44d Mon Sep 17 00:00:00 2001 From: EndrII Date: Mon, 20 Sep 2021 15:21:26 +0300 Subject: [PATCH] ref #661 "fix deploy icons " --- Deploy/Distributions/idistribution.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Deploy/Distributions/idistribution.cpp b/Deploy/Distributions/idistribution.cpp index ae4cc1c0..9c36aed8 100644 --- a/Deploy/Distributions/idistribution.cpp +++ b/Deploy/Distributions/idistribution.cpp @@ -275,7 +275,6 @@ bool iDistribution::deployIcon(const DistroModule& pkg) { auto localData = dataLocation(pkg); const DeployConfig *cfg = DeployCore::_config; - QSet icons; for (const auto& target: pkg.targets()) { auto targetObject = cfg->targets().value(target); @@ -292,8 +291,11 @@ bool iDistribution::deployIcon(const DistroModule& pkg) { QuasarAppUtils::Params::log(QString("%0: %1").arg(target, icon), QuasarAppUtils::Debug); - if (icons.contains(icon)) - break; + if (!targetObject.fEnableRunScript()) { + QuasarAppUtils::Params::log(QString("%0: %1 Ignored").arg(target, icon), + QuasarAppUtils::Debug); + continue; + } QFileInfo iconInfo(icon); QFileInfo runScript(targetObject.getRunScriptFile()); @@ -307,8 +309,6 @@ bool iDistribution::deployIcon(const DistroModule& pkg) { return false; } - - icons += icon; } return true;