Skip to content
Verified Commit f043a4b6 authored by Fushan Wen's avatar Fushan Wen
Browse files

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
parent a0040bdb
Loading
Loading
Loading
Pipeline #157193 passed with stage
in 5 minutes and 35 seconds
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment