mirror of
https://github.com/stenzek/duckstation.git
synced 2026-02-08 15:24:33 +00:00
Qt: Delete some redundant code in GameListModel
The settings are already modified by the caller. The cover cache is cleared by refreshCovers().
This commit is contained in:
committed by
Connor McLaughlin
parent
b0dd909cf8
commit
6765b2feb0
@@ -150,17 +150,10 @@ GameListModel::~GameListModel() = default;
|
||||
|
||||
void GameListModel::setShowLocalizedTitles(bool enabled)
|
||||
{
|
||||
if (m_show_localized_titles == enabled)
|
||||
return;
|
||||
|
||||
m_show_localized_titles = enabled;
|
||||
|
||||
Host::SetBaseBoolSettingValue("UI", "GameListShowLocalizedTitles", enabled);
|
||||
Host::CommitBaseSettingChanges();
|
||||
|
||||
// emit cover changed as well since the autogenerated covers will differ
|
||||
emit dataChanged(index(0, Column_Title), index(rowCount() - 1, Column_Title), {Qt::DisplayRole});
|
||||
m_cover_pixmap_cache.Clear();
|
||||
// emit cover changed as well since the autogenerated covers will differ
|
||||
refreshCovers();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user