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:
parent
b1fd06eb4c
commit
438829a1d5
3 changed files with 18 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue