From e8f8e26508096e659e1066aa261aa74355d67da7 Mon Sep 17 00:00:00 2001 From: Gabor Miklos Date: Mon, 14 Oct 2024 13:49:39 +0300 Subject: [PATCH] [v3] Fix service name determination Should use service instance, not Service wrapper struct. --- mkdocs-website/docs/en/changelog.md | 1 + v3/pkg/application/application.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/mkdocs-website/docs/en/changelog.md b/mkdocs-website/docs/en/changelog.md index 77ef63f2e60..c787f980460 100644 --- a/mkdocs-website/docs/en/changelog.md +++ b/mkdocs-website/docs/en/changelog.md @@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Taskfile refactor by [leaanthony](https://github.com/leaanthony) in [#3748](https://github.com/wailsapp/wails/pull/3748) - Upgrade to `go-webview2` v1.0.16 by [leaanthony](https://github.com/leaanthony) - Fixed `Screen` type to include `ID` not `Id` by [etesam913](https://github.com/etesam913) in [#3778](https://github.com/wailsapp/wails/pull/3778) +- Fixed service name determination by [windom](https://github.com/windom/) in [#????](https://github.com/wailsapp/wails/pull/????) ## v3.0.0-alpha.7 - 2024-09-18 diff --git a/v3/pkg/application/application.go b/v3/pkg/application/application.go index 94a291e2bbb..2fe28625108 100644 --- a/v3/pkg/application/application.go +++ b/v3/pkg/application/application.go @@ -142,7 +142,7 @@ func New(appOptions Options) *App { if err != nil { name := service.options.Name if name == "" { - name = getServiceName(service) + name = getServiceName(service.instance) } globalApplication.Logger.Error("OnStartup() failed:", "service", name, "error", err.Error()) continue