mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-10-26 23:11:34 +03: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:
parent
c1ee919add
commit
810c23b422
Notes:
sideshowbarker
2024-07-17 22:01:16 +09:00
Author: https://github.com/tcl3 Commit: https://github.com/SerenityOS/serenity/commit/810c23b422 Pull-request: https://github.com/SerenityOS/serenity/pull/17017 Reviewed-by: https://github.com/gmta
@ -126,6 +126,7 @@ void ClipboardHistoryModel::add_item(const GUI::Clipboard::DataAndType& item)
|
||||
void ClipboardHistoryModel::remove_item(int 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)
|
||||
|
Loading…
Reference in New Issue
Block a user