diff --git a/internal/async/goroutine.go b/internal/async/goroutine.go index 8f2b412905..3eddf1c299 100644 --- a/internal/async/goroutine.go +++ b/internal/async/goroutine.go @@ -30,7 +30,7 @@ func IsMainGoroutine() bool { // // This will be removed later and should never be public func EnsureNotMain(fn func()) { - if build.MigratedToFyneDo() || !build.HasHints || !IsMainGoroutine() { + if build.MigratedToFyneDo() || !IsMainGoroutine() { fn() return } @@ -47,7 +47,7 @@ func EnsureNotMain(fn func()) { // // This will be removed later and should never be public func EnsureMain(fn func()) { - if build.MigratedToFyneDo() || !build.HasHints || IsMainGoroutine() { + if build.MigratedToFyneDo() || IsMainGoroutine() { fn() return }