Skip to content

Commit

Permalink
Hints logic was broken
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Jan 21, 2025
1 parent d94129d commit 730f36e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/async/goroutine.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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
}
Expand Down

0 comments on commit 730f36e

Please sign in to comment.