From c73b2dd753d7b379ec4496e5b2ec5db02a9a307f Mon Sep 17 00:00:00 2001 From: Anton Gilgur <4970083+agilgur5@users.noreply.github.com> Date: Sun, 30 Nov 2025 01:42:02 -0500 Subject: [PATCH] [v2] docs(menu): fix some syntax issues (#4726) * [v2] docs(menu): fix some syntax issues - one line wasn't properly indented - one line was missing a closing brace and wouldn't compile as such noticed this while [answering a question on SO](https://stackoverflow.com/a/79827672/3431180) which linked to this page * add changelog entry per PR template * consistent 4 space indentation --------- Co-authored-by: Lea Anthony --- website/docs/reference/menus.mdx | 5 ++--- website/src/pages/changelog.mdx | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/website/docs/reference/menus.mdx b/website/docs/reference/menus.mdx index 4a9b4da1b..c2b63291d 100644 --- a/website/docs/reference/menus.mdx +++ b/website/docs/reference/menus.mdx @@ -11,7 +11,6 @@ setting it in the [`Menu`](../reference/options.mdx#menu) application config, or An example of how to create a menu: ```go - app := NewApp() AppMenu := menu.NewMenu() @@ -29,7 +28,7 @@ An example of how to create a menu: }) if runtime.GOOS == "darwin" { - AppMenu.Append(menu.EditMenu()) // On macOS platform, EditMenu should be appended to enable Cmd+C, Cmd+V, Cmd+Z... shortcuts + AppMenu.Append(menu.EditMenu()) // On macOS platform, EditMenu should be appended to enable Cmd+C, Cmd+V, Cmd+Z... shortcuts } err := wails.Run(&options.App{ @@ -40,7 +39,7 @@ An example of how to create a menu: Bind: []interface{}{ app, }, - ) + }) // ... ``` diff --git a/website/src/pages/changelog.mdx b/website/src/pages/changelog.mdx index b802414ac..0b1a30618 100644 --- a/website/src/pages/changelog.mdx +++ b/website/src/pages/changelog.mdx @@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed +- Fixed menu reference syntax by @agilgur5 in [#4726](https://github.com/wailsapp/wails/pull/4726) - Fixed indentation in Application Development guide by @agilgur5 in [#4730](https://github.com/wailsapp/wails/pull/4730) - Updated Application Development guide to show imports in the `app.go` snippets by @agilgur5 in [#4731](https://github.com/wailsapp/wails/pull/4731) - Fixed link to CoC in Community Guide when there was a trailing slash by @agilgur5 in [#4732](https://github.com/wailsapp/wails/pull/4732)