tailscale / walk

A Windows GUI toolkit for the Go Programming Language
Other
32 stars 5 forks source link

window.go: Refer directly to appSingleton when resolving Application … #62

Closed dblohm7 closed 6 months ago

dblohm7 commented 6 months ago

…during window class registration

walk.App() is sometimes poorly suited for internal references to the app because it includes a bunch of checks to ensure that it is not being called too early in the application's lifecycle. On the other hand, internally to the framework, we sometimes need to be able to reference the app without those additional checks. This is one of those cases.