From 32fa54316485affc4622b6394720dcb83e6cf695 Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Wed, 3 Nov 2021 19:25:42 +1100 Subject: [PATCH] [website] Update docs --- website/blog/2021-11-06-v2-beta2-release-notes.mdx | 1 + website/docs/reference/menus.mdx | 2 +- website/docs/reference/options.mdx | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/website/blog/2021-11-06-v2-beta2-release-notes.mdx b/website/blog/2021-11-06-v2-beta2-release-notes.mdx index 19a24a822..eccce86f5 100644 --- a/website/blog/2021-11-06-v2-beta2-release-notes.mdx +++ b/website/blog/2021-11-06-v2-beta2-release-notes.mdx @@ -157,4 +157,5 @@ I look forward to seeing what people build with Wails in this next exciting phas Lea. PS: Linux users, you're next! + PPS: If you or your company find Wails useful, please consider [sponsoring the project](https://github.com/sponsors/leaanthony). Thanks! diff --git a/website/docs/reference/menus.mdx b/website/docs/reference/menus.mdx index 389a3eee1..7c637d897 100644 --- a/website/docs/reference/menus.mdx +++ b/website/docs/reference/menus.mdx @@ -5,7 +5,7 @@ sidebar_position: 4 # Menus It is possible to add an application menu to Wails projects. This is achieved by defining a [Menu](#menu) struct and -calling the runtime method [MenuSetApplicationMenu](/docs/reference/runtime/menu#menusetapplicationmenu). +setting the [`Menu`](/docs/reference/options#menu) option, or by calling the runtime method [MenuSetApplicationMenu](/docs/reference/runtime/menu#menusetapplicationmenu). It is also possible to dynamically update the menu, by updating the menu struct and calling [MenuUpdateApplicationMenu](/docs/reference/runtime/menu#menuupdateapplicationmenu). diff --git a/website/docs/reference/options.mdx b/website/docs/reference/options.mdx index d31648bae..d55b0cd41 100644 --- a/website/docs/reference/options.mdx +++ b/website/docs/reference/options.mdx @@ -210,6 +210,8 @@ Type: \*menu.Menu The menu to be used by the application. More details about Menus in the [Menu Reference](/docs/reference/runtime/menu). +NOTE: On Mac, if no menu is specified, a default menu will be created. + ### Logger Name: Logger