Qt: Fix scroll bar desyncing on icon size change

This commit is contained in:
Stenzek
2025-09-03 22:32:02 +10:00
parent fb1bd1e283
commit 08901c0638

View File

@@ -203,6 +203,11 @@ void GameListModel::setIconSize(int size)
Host::CommitBaseSettingChanges();
emit iconSizeChanged(m_icon_size);
// Might look odd, but this is needed to force the section sizes to invalidate
// after we change them in the list view in the iconSizeChanged() handler.
emit headerDataChanged(Qt::Vertical, 0, rowCount() - 1);
loadSizeDependentPixmaps();
refreshIcons();
}