From d5ce3d28abb48c0a1e0b40f7c6802154433c9ac2 Mon Sep 17 00:00:00 2001 From: Whindmar Saksit Date: Thu, 30 Jan 2025 21:14:10 +0100 Subject: [PATCH] [RAPPS] Don't display Freeware license string if the type is also Freeware (#7689) License=Freeware, LicenseType=2 should not display as "Freeware (Freeware)" --- base/applications/rapps/appinfo.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/base/applications/rapps/appinfo.cpp b/base/applications/rapps/appinfo.cpp index eefbb91d2e5..1970b9459d9 100644 --- a/base/applications/rapps/appinfo.cpp +++ b/base/applications/rapps/appinfo.cpp @@ -163,16 +163,16 @@ CAvailableApplicationInfo::LicenseString() LicenseType licenseType; if (IsKnownLicenseType(IntBuffer)) - { licenseType = static_cast(IntBuffer); - } else - { licenseType = LICENSE_NONE; + + if (licenseType == LICENSE_NONE || licenseType == LICENSE_FREEWARE) + { if (szLicenseString.CompareNoCase(L"Freeware") == 0) { licenseType = LICENSE_FREEWARE; - szLicenseString = L""; + szLicenseString = L""; // Don't display as "Freeware (Freeware)" } }