Qt: Fix scroll bar desyncing on icon size change

pull/3553/head
Stenzek 2 months ago
parent fb1bd1e283
commit 08901c0638
No known key found for this signature in database

@ -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();
}

Loading…
Cancel
Save