mirror of
https://github.com/AynaLivePlayer/AynaLivePlayer.git
synced 2025-12-14 22:18:17 +08:00
fyne 2.6.1 update, make all gui threadsafe
This commit is contained in:
@@ -37,7 +37,8 @@ func (b *AsyncButton) SetOnTapped(f func()) {
|
||||
b.Disable()
|
||||
go func() {
|
||||
f()
|
||||
b.Enable()
|
||||
//time.Sleep(3 * time.Second)
|
||||
fyne.Do(b.Enable)
|
||||
}()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user