Skip to content

Commit

Permalink
Move check renderer away from double-locking on disabled flag
Browse files Browse the repository at this point in the history
Fixes #2348
  • Loading branch information
andydotxyz committed Aug 12, 2021
1 parent 8ae2e3c commit 187cb29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion widget/check.go
Expand Up @@ -53,7 +53,7 @@ func (c *checkRenderer) Layout(size fyne.Size) {
func (c *checkRenderer) applyTheme() {
c.label.Color = theme.ForegroundColor()
c.label.TextSize = theme.TextSize()
if c.check.Disabled() {
if c.check.disabled {
c.label.Color = theme.DisabledColor()
}
}
Expand Down

0 comments on commit 187cb29

Please sign in to comment.