fyne 2.6.1 update, make all gui threadsafe

This commit is contained in:
aynakeya
2025-06-15 00:04:13 +08:00
parent 45e4c15b8d
commit dd71c3b9ba
15 changed files with 108 additions and 76 deletions

View File

@@ -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)
}()
}
}