Qt: Invalidate covers when all titles are invalidated

This commit is contained in:
Stenzek
2025-12-15 19:02:36 +10:00
parent f52a5afcb8
commit a777466c51

View File

@@ -546,6 +546,11 @@ void GameListModel::invalidateColumn(int column, bool invalidate_cache /* = true
if (QtHost::IsFullscreenUIStarted())
Host::RunOnCPUThread([]() { FullscreenUI::InvalidateCoverCache(); });
}
else if (column == Column_Title)
{
// if we're changing the title, the generated cover could change
invalidateColumn(Column_Cover, invalidate_cache);
}
}
emit dataChanged(index(0, column), index(rowCount() - 1, column), getRolesToInvalidate(column));