1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 03:07:44 +00:00

MenuApplets: Added ability to remove entry from ClipboardHistory (#4143)

This commit is contained in:
Florian Förster 2020-11-24 21:37:04 +01:00 committed by GitHub
parent b1fd06eb4c
commit 438829a1d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 0 deletions

View file

@ -99,3 +99,8 @@ void ClipboardHistoryModel::add_item(const GUI::Clipboard::DataAndType& item)
m_history_items.prepend(item);
update();
}
void ClipboardHistoryModel::remove_item(int index)
{
m_history_items.remove(index);
}