From b18f747f0ca40aa41615b017194492932a2e917b Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Wed, 14 Aug 2024 19:59:53 -0400 Subject: [PATCH] Fix tag setting not invalidating style --- internal/system/box.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/system/box.go b/internal/system/box.go index 807b84b..3aeb777 100644 --- a/internal/system/box.go +++ b/internal/system/box.go @@ -130,11 +130,15 @@ func (this *box) Tag (tag string) bool { } func (this *box) SetTag (tag string, on bool) { + wasOn := this.tags.Has(tag) if on { this.tags.Add(tag) } else { delete(this.tags, tag) } + if wasOn != on { + this.invalidateStyle() + } } func (this *box) SetAttr (attr tomo.Attr) {