mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 14:45:49 +01:00
[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 <lea.anthony@gmail.com>
This commit is contained in:
parent
e37a7b9d4b
commit
c73b2dd753
2 changed files with 3 additions and 3 deletions
|
|
@ -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,
|
||||
},
|
||||
)
|
||||
})
|
||||
// ...
|
||||
```
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue