Use fyne.Do for popup updates
This commit is contained in:
parent
dd9ba0b6a6
commit
860076cab7
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user