Invalidate GPUI views regardless of draw phase (#24164)

We think this could fix issues around view invalidation during focus
handling.

I want to run CI on this and see.

cc @mikayla-maki @maxbrunsfeld 

Release Notes:

- N/A
This commit is contained in:
Nathan Sobo authored and GitHub committed 2025-02-03 21:44:07 -08:00
1 parent fa2495027b
commit c49ecf3553
1 file changed
+1 -1
+1 -1
View File
@@ -107,9 +107,9 @@ impl WindowInvalidator {
pub fn invalidate_view(&self, entity: EntityId, cx: &mut App) -> bool {
let mut inner = self.inner.borrow_mut();
inner.dirty_views.insert(entity);
if inner.draw_phase == DrawPhase::None {
inner.dirty = true;
inner.dirty_views.insert(entity);
cx.push_effect(Effect::Notify { emitter: entity });
true
} else {