Skip to content

Commit

Permalink
fix deadlock after merge commit
Browse files Browse the repository at this point in the history
  • Loading branch information
dweymouth authored and Jacalz committed Feb 6, 2024
1 parent 5182822 commit 117964c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions widget/hyperlink.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,13 +301,14 @@ func (r *hyperlinkRenderer) Objects() []fyne.CanvasObject {
}

func (r *hyperlinkRenderer) Refresh() {
r.hl.provider.Refresh()
th := r.hl.Theme()
v := fyne.CurrentApp().Settings().ThemeVariant()

r.hl.provider.Refresh()
r.hl.propertyLock.RLock()
defer r.hl.propertyLock.RUnlock()
r.focus.StrokeColor = theme.FocusColor()

r.focus.StrokeColor = th.Color(theme.ColorNameFocus, v)
r.focus.Hidden = !r.hl.focused
r.focus.Refresh()
r.under.FillColor = th.Color(theme.ColorNameHyperlink, v)
Expand Down

0 comments on commit 117964c

Please sign in to comment.