Skip to content

Commit a777466

Browse files
committed
Qt: Invalidate covers when all titles are invalidated
1 parent f52a5af commit a777466

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/duckstation-qt/gamelistwidget.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,11 @@ void GameListModel::invalidateColumn(int column, bool invalidate_cache /* = true
546546
if (QtHost::IsFullscreenUIStarted())
547547
Host::RunOnCPUThread([]() { FullscreenUI::InvalidateCoverCache(); });
548548
}
549+
else if (column == Column_Title)
550+
{
551+
// if we're changing the title, the generated cover could change
552+
invalidateColumn(Column_Cover, invalidate_cache);
553+
}
549554
}
550555

551556
emit dataChanged(index(0, column), index(rowCount() - 1, column), getRolesToInvalidate(column));

0 commit comments

Comments
 (0)