Skip to content

klipper: Don't use `beginInsertRows` every time adding a new item when loading history

Fushan Wen requested to merge work/fusionfuture/klipper-load-items-once into master

Currently, every time adding a new item, beginInsertRows and endInsertRows are called, which is not efficient. Use beginResetModel and endResetModel before and after loading history items to avoid frequently emitting inserted signals.

CCBUG: 450989

Merge request reports

Loading