From 4325b06ac47ca1e76247c268d36ca3176ab9c828 Mon Sep 17 00:00:00 2001 From: John McCabe Date: Sun, 20 Oct 2024 22:35:34 +0100 Subject: [PATCH] [v3 Darwin] Fix NewEditMenu, remove duplicate PasteAndMatchStyle item (#3839) * [V3 Darwin] Fix NewEditMenu, remove duplicate PasteAndMatchStyle item * [chore] Add darwin fix for NewEditMenu dupe role to changelog - PR #3839 --------- Co-authored-by: Lea Anthony --- mkdocs-website/docs/en/changelog.md | 4 ++-- v3/pkg/application/roles.go | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/mkdocs-website/docs/en/changelog.md b/mkdocs-website/docs/en/changelog.md index 1f15cf6d9..f50df029a 100644 --- a/mkdocs-website/docs/en/changelog.md +++ b/mkdocs-website/docs/en/changelog.md @@ -26,8 +26,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fixed `Screen` type to include `ID` not `Id` by [etesam913](https://github.com/etesam913) in [#3778](https://github.com/wailsapp/wails/pull/3778) ### Fixed -- Fixed `AlwaysOnTop` not working on Mac by [leaanthony](https://github.com/leaanthony) - in [#3841](https://github.com/wailsapp/wails/pull/3841) +- Fixed `AlwaysOnTop` not working on Mac by [leaanthony](https://github.com/leaanthony) in [#3841](https://github.com/wailsapp/wails/pull/3841) +- [darwin] Fixed `application.NewEditMenu` including a duplicate `PasteAndMatchStyle` role in the edit menu on Darwin by [johnmccabe](https://github.com/johnmccabe) in [#3839](https://github.com/wailsapp/wails/pull/3839) ## v3.0.0-alpha.7 - 2024-09-18 diff --git a/v3/pkg/application/roles.go b/v3/pkg/application/roles.go index 4786c9862..a6e6f177c 100644 --- a/v3/pkg/application/roles.go +++ b/v3/pkg/application/roles.go @@ -121,7 +121,6 @@ func NewEditMenu() *MenuItem { editMenu.AddRole(Copy) editMenu.AddRole(Paste) if runtime.GOOS == "darwin" { - editMenu.AddRole(PasteAndMatchStyle) editMenu.AddRole(PasteAndMatchStyle) editMenu.AddRole(Delete) editMenu.AddRole(SelectAll)