Dispatch view.event_added over the added half of the changed range

fb75510 pointed it at the removed half, so it fired on departing downloads instead.
This commit is contained in:
xirvik
2026-09-19 01:11:49 +00:00
committed by Jari Sundell
parent 0d3404576a
commit d9439d7a95
4 changed files with 182 additions and 1 deletions
+1 -1
View File
@@ -301,7 +301,7 @@ View::filter() {
std::for_each(changed.begin(), splitChanged, [this](const auto& d) { rpc::call_object_d_nothrow(m_event_removed, d.get()); });
if (!m_event_added.is_empty())
std::for_each(changed.begin(), splitChanged, [this](const auto& d) { rpc::call_object_d_nothrow(m_event_added, d.get()); });
std::for_each(splitChanged, changed.end(), [this](const auto& d) { rpc::call_object_d_nothrow(m_event_added, d.get()); });
emit_changed();
}