Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Sep 24, 2024
1 parent 3632fef commit c6dd2ee
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/textual/_compositor.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,9 +486,8 @@ def full_map(self) -> CompositorMap:
return {}
if self._full_map_invalidated:
self._full_map_invalidated = False
old_widgets = self._full_map.keys()
map, widgets = self._arrange_root(self.root, self.size, visible_only=False)
self._new_widgets.update(map.keys() - old_widgets)
map, _widgets = self._arrange_root(self.root, self.size, visible_only=False)
self._new_widgets.update(map.keys() - self._full_map.keys())
self._full_map = map
self._visible_widgets = None
self._visible_map = None
Expand Down

0 comments on commit c6dd2ee

Please sign in to comment.