Pass reused parameter to Presenter::dispatch_event for status items

This commit is contained in:
Antonio Scandurra
2022-09-13 14:49:49 +02:00
parent 11d47f5c72
commit a34eaa3606
+1 -1
View File
@@ -2027,7 +2027,7 @@ impl MutableAppContext {
status_item.on_event(Box::new(move |event| {
app.update(|cx| {
if let Some(presenter) = presenter.upgrade() {
presenter.borrow_mut().dispatch_event(event, cx)
presenter.borrow_mut().dispatch_event(event, false, cx)
} else {
false
}