Compare commits
1 Commits
v0.6.1
...
b18f747f0c
| Author | SHA1 | Date | |
|---|---|---|---|
| b18f747f0c |
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user