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:
Dave Pearson
2023-05-16 13:33:57 +01:00
parent aff9bcdf93
commit f12aeb00d2

View File

@@ -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)