diff --git a/docs/src/content/docs/changelog.mdx b/docs/src/content/docs/changelog.mdx index 43fd451da..591fcbc3e 100644 --- a/docs/src/content/docs/changelog.mdx +++ b/docs/src/content/docs/changelog.mdx @@ -140,6 +140,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Built-in service types are now consistently called `Service` by [@fbbdev](https://github.com/fbbdev) in [#4067](https://github.com/wailsapp/wails/pull/4067) - Built-in service creation functions with options are now consistently called `NewWithConfig` by [@fbbdev](https://github.com/fbbdev) in [#4067](https://github.com/wailsapp/wails/pull/4067) - `Select` method on `sqlite` service is now named `Query` for consistency with Go APIs by [@fbbdev](https://github.com/fbbdev) in [#4067](https://github.com/wailsapp/wails/pull/4067) +- Calling `application.New` more than once will result in a fatal error by [@leaanthony](https://github.com/leaanthony) ## v3.0.0-alpha.9 - 2025-01-13 diff --git a/v3/pkg/application/application.go b/v3/pkg/application/application.go index 21c0792cc..976c7d491 100644 --- a/v3/pkg/application/application.go +++ b/v3/pkg/application/application.go @@ -54,7 +54,7 @@ func Get() *App { func New(appOptions Options) *App { if globalApplication != nil { - return globalApplication + globalApplication.fatal("application already created. You cannot create more than one application") } mergeApplicationDefaults(&appOptions)