https://bugs.kde.org/show_bug.cgi?id=450989

--- Comment #14 from Fushan Wen <qydwhotm...@gmail.com> ---
Git commit f043a4b6c76869e896ac730b9aa861f836a6d2a8 by Fushan Wen.
Committed on 30/03/2022 at 23:40.
Pushed by fusionfuture into branch 'master'.

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.

M  +2    -5    klipper/history.cpp
M  +4    -4    klipper/history.h
M  +28   -0    klipper/historymodel.cpp
M  +1    -0    klipper/historymodel.h
M  +3    -11   klipper/klipper.cpp

https://invent.kde.org/plasma/plasma-workspace/commit/f043a4b6c76869e896ac730b9aa861f836a6d2a8

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to