mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-08 23:42:53 +03: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(). |
||
---|---|---|
.. | ||
Audio | ||
ClipboardHistory | ||
Keymap | ||
Network | ||
ResourceGraph | ||
WorkspacePicker | ||
CMakeLists.txt |