fix: wacky loop in color_data.py

This commit is contained in:
Travis Abendshien
2026-09-14 15:53:15 -07:00
parent ca143139cb
commit 5cb47489b0
@@ -59,8 +59,10 @@ class ColorData(TileData):
max_width = 60
color_widgets: list[TagColorLabel] = []
while (item := self.layout().itemAt(0)) and (widget := item.widget()):
widget.deleteLater()
layout = self.layout()
while item := layout.takeAt(0):
if widget := item.widget():
widget.deleteLater()
for color in colors_:
color_widget = TagColorLabel(