Run colored select popup updates on main thread
This commit is contained in:
parent
f120aa0feb
commit
f5d9edd4bc
|
|
@ -1302,11 +1302,13 @@ 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() {
|
||||||
if cs.popup != nil {
|
fyne.CurrentApp().Driver().RunOnMain(func() {
|
||||||
cs.popup.Hide()
|
if cs.popup != nil {
|
||||||
cs.popup = nil
|
cs.popup.Hide()
|
||||||
cs.Refresh()
|
cs.popup = nil
|
||||||
}
|
cs.Refresh()
|
||||||
|
}
|
||||||
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user