ladybird/Userland/Applets/ClipboardHistory
Sam Atkins b177e0dd66 ClipboardHistory: Be more careful about the history limit
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().
2024-02-08 13:46:12 +00:00
..
ClipboardHistoryModel.cpp ClipboardHistory: Be more careful about the history limit 2024-02-08 13:46:12 +00:00
ClipboardHistoryModel.h ClipboardHistory: Store clipboard history as valid JSON 2024-02-08 13:46:12 +00:00
CMakeLists.txt Everywhere: Mark dependencies of most targets as PRIVATE 2022-11-01 14:49:09 +00:00
main.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30