mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 01:20:25 +00:00
b177e0dd66
Previously, if the number of history items was already above the history limit, then it would never trim old history items. This could happen if the ClipboardHistory.json file was manually edited. Prevent this by sorting and trimming the data that is read in. For good measure, also guard against `> m_history_limit` in add_item(). |
||
---|---|---|
.. | ||
ClipboardHistoryModel.cpp | ||
ClipboardHistoryModel.h | ||
CMakeLists.txt | ||
main.cpp |