Use fyne.Do for popup updates

This commit is contained in:
Stu Leak 2026-01-04 12:56:40 -05:00
parent dd9ba0b6a6
commit 860076cab7

View File

@ -1303,7 +1303,7 @@ func (cs *ColoredSelect) showPopup() {
} }
// Hide popup after a short delay to allow the selection to be processed // Hide popup after a short delay to allow the selection to be processed
time.AfterFunc(50*time.Millisecond, func() { time.AfterFunc(50*time.Millisecond, func() {
fyne.CurrentApp().Driver().RunOnMain(func() { fyne.Do(func() {
if cs.popup != nil { if cs.popup != nil {
cs.popup.Hide() cs.popup.Hide()
cs.popup = nil cs.popup = nil