From 117964cfb121889eb57fc56794206ce505482be8 Mon Sep 17 00:00:00 2001 From: Drew Weymouth Date: Sat, 3 Feb 2024 09:39:26 -0800 Subject: [PATCH] fix deadlock after merge commit --- widget/hyperlink.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/widget/hyperlink.go b/widget/hyperlink.go index 9961c1dd8f..4552cd4a0d 100644 --- a/widget/hyperlink.go +++ b/widget/hyperlink.go @@ -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)