Use fyne.Do for popup updates
This commit is contained in:
parent
bf355f3482
commit
587ee37c04
|
|
@ -1303,7 +1303,7 @@ func (cs *ColoredSelect) showPopup() {
|
|||
}
|
||||
// Hide popup after a short delay to allow the selection to be processed
|
||||
time.AfterFunc(50*time.Millisecond, func() {
|
||||
fyne.CurrentApp().Driver().RunOnMain(func() {
|
||||
fyne.Do(func() {
|
||||
if cs.popup != nil {
|
||||
cs.popup.Hide()
|
||||
cs.popup = nil
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user