You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the issue tracker for open issues that relate to the same problem, before opening a new one.
This issue only relates to a single bug. I will open new issues for any other problems.
Describe the bug
This code panics. I have no explanation for why it would panic. However, moving app.New() to the top of main() allows it to work. Anything to make this requirement clearer would be helpful.
With the attached PR you now get the following instead of a crash:
2024/04/23 10:21:16 Fyne error: Attempt to access current Fyne theme when no app is started
2024/04/23 10:21:16 At: /Users/andy/Code/Fyne/fyne/app/settings.go:70
Checklist
Describe the bug
This code panics. I have no explanation for why it would panic. However, moving app.New() to the top of main() allows it to work. Anything to make this requirement clearer would be helpful.
How to reproduce
build+run the code
Screenshots
No response
Example code
Fyne version
v2.4.4
Go compiler version
go version go1.22.1 linux/amd64
Operating system and version
Ubuntu 22
Additional Information
No response
The text was updated successfully, but these errors were encountered: