mirror of
https://github.com/aditya-K2/gspt.git
synced 2026-01-08 21:37:58 -05:00
Don't wait for the refreshable to refresh it's state
This commit is contained in:
@@ -38,7 +38,9 @@ func (a *Action) Func() ActionFunc {
|
|||||||
if a != nil && a.f != nil {
|
if a != nil && a.f != nil {
|
||||||
val := a.f(e)
|
val := a.f(e)
|
||||||
if a.refreshable != nil && val == nil {
|
if a.refreshable != nil && val == nil {
|
||||||
a.refreshable.RefreshState()
|
go func() {
|
||||||
|
a.refreshable.RefreshState()
|
||||||
|
}()
|
||||||
}
|
}
|
||||||
return val
|
return val
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user