Keep formatting consistent

Signed-off-by: PandaNinjas <admin@malwarefight.wip.la>
This commit is contained in:
PandaNinjas 2023-07-06 08:51:42 -04:00 committed by GitHub
parent 817ecf8225
commit 13d67c6524
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -193,13 +193,16 @@ QVariant VersionProxyModel::data(const QModelIndex &index, int role) const
}
case Qt::ToolTipRole:
{
if (column == Name && hasRecommended) {
if(column == Name && hasRecommended)
{
auto value = sourceModel()->data(parentIndex, BaseVersionList::RecommendedRole);
if (value.toBool()) {
if(value.toBool())
{
return tr("Recommended");
} else if(hasLatest) {
auto value = sourceModel()->data(parentIndex, BaseVersionList::LatestRole);
if(value.toBool()) {
if(value.toBool())
{
return tr("Latest");
}
}