mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Remove forced content tracking refresh in clear_options
While the fix for #2557 likely isn't *the* fix (see #2582 for some context around that), it is a fix that works for now. As such, with the change, there was a double attempt to refresh the content tracking in the clearing of options in the OptionList, which shouldn't be necessary. This removes that.
This commit is contained in:
@@ -627,7 +627,6 @@ class OptionList(ScrollView, can_focus=True):
|
||||
"""
|
||||
self._contents.clear()
|
||||
self._options.clear()
|
||||
self._refresh_content_tracking(force=True)
|
||||
self.highlighted = None
|
||||
self._mouse_hovering_over = None
|
||||
self.virtual_size = Size(self.scrollable_content_region.width, 0)
|
||||
|
||||
Reference in New Issue
Block a user