klipper: Don't use `beginInsertRows` every time adding a new item when loading history
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
Please register or sign in to comment