Qt: Show English and localized names in tooltip

pull/3539/head^2
Stenzek 2 months ago
parent 29327b3e22
commit 2ed8c024a3
No known key found for this signature in database

@ -683,7 +683,12 @@ QVariant GameListModel::data(const QModelIndex& index, int role, const GameList:
return QtUtils::StringViewToQString(ge->serial);
case Column_Title:
return QtUtils::StringViewToQString(ge->GetDisplayTitle(m_show_localized_titles));
{
if (!ge->has_custom_title && ge->dbentry && !ge->dbentry->localized_title.empty())
return QString::fromStdString(fmt::format("{}\n{}", ge->dbentry->localized_title, ge->dbentry->title));
else
return QtUtils::StringViewToQString(ge->GetDisplayTitle(m_show_localized_titles));
}
case Column_FileTitle:
return QtUtils::StringViewToQString(Path::GetFileTitle(ge->path));

Loading…
Cancel
Save