1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 05:47:35 +00:00

ClipboardHistory: Invalidate model on item removal

Not doing this caused the window to not update until the mouse was
clicked again.
This commit is contained in:
Tim Ledbetter 2023-01-14 13:16:24 +00:00 committed by Jelle Raaijmakers
parent c1ee919add
commit 810c23b422

View file

@ -126,6 +126,7 @@ void ClipboardHistoryModel::add_item(const GUI::Clipboard::DataAndType& item)
void ClipboardHistoryModel::remove_item(int index) void ClipboardHistoryModel::remove_item(int index)
{ {
m_history_items.remove(index); m_history_items.remove(index);
invalidate();
} }
void ClipboardHistoryModel::config_string_did_change(DeprecatedString const& domain, DeprecatedString const& group, DeprecatedString const& key, DeprecatedString const& value_string) void ClipboardHistoryModel::config_string_did_change(DeprecatedString const& domain, DeprecatedString const& group, DeprecatedString const& key, DeprecatedString const& value_string)