mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-07 13:03:54 +00:00
[core] Better check whether showing brand is redundant in subtitle
Previous implementation checked if brand was equal to name, better to check if it's located in name Signed-off-by: eisa01 <eisa01@gmail.com>
This commit is contained in:
committed by
Konstantin Pastbin
parent
fbc844b19e
commit
7088489814
@@ -165,7 +165,7 @@ std::string Info::FormatSubtitle(bool withTypes, bool withMainType) const
|
||||
auto const locBrand = platform::GetLocalizedBrandName(std::string(brand));
|
||||
|
||||
// Do not duplicate for commonly used titles like McDonald's, Starbucks, etc.
|
||||
if (locBrand != m_uiTitle && locBrand != m_uiSecondaryTitle)
|
||||
if (m_uiTitle.find(locBrand) == std::string::npos && m_uiSecondaryTitle.find(locBrand) == std::string::npos)
|
||||
append(locBrand);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user