Skip to content

Commit 244f322

Browse files
committed
Fix Hidden Mac MenuItem.
Go 1.24
1 parent e75c10d commit 244f322

File tree

5 files changed

+203
-189
lines changed

5 files changed

+203
-189
lines changed

docs/src/content/docs/changelog.mdx

+2
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7878
- Moved injected code to the end of service files by [@fbbdev](https://github.com/fbbdev) in [#4045](https://github.com/wailsapp/wails/pull/4045)
7979
- Fixed handling of errors from file close operations in binding generator by [@fbbdev](https://github.com/fbbdev) in [#4045](https://github.com/wailsapp/wails/pull/4045)
8080
- Suppressed warnings for services that define lifecycle or http methods but no other bound methods by [@fbbdev](https://github.com/fbbdev) in [#4045](https://github.com/wailsapp/wails/pull/4045)
81+
- Fixed hidden menu items on macOS by [@leaanthony](https://github.com/leaanthony)
8182

8283
### Changed
8384

@@ -93,6 +94,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9394
- In JS/TS bindings, in class mode, struct fields whose type is a type parameter are marked optional and never initialised automatically by [@fbbdev](https://github.com/fbbdev) in [#4045](https://github.com/wailsapp/wails/pull/4045)
9495
- Update copyright date to 2025 by [@IanVS](https://github.com/IanVS) in [#4037](https://github.com/wailsapp/wails/pull/4037)
9596
- Add docs for event.Sender by [@IanVS](https://github.com/IanVS) in [#4075](https://github.com/wailsapp/wails/pull/4075)
97+
- Go 1.24 support by [@leaanthony](https://github.com/leaanthony)
9698

9799
## v3.0.0-alpha.9 - 2025-01-13
98100

v3/examples/systray-menu/main.go

+1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ func main() {
5555

5656
myMenu := app.NewMenu()
5757
myMenu.Add("Wails").SetBitmap(logo).SetEnabled(false)
58+
myMenu.Add("Hidden").SetHidden(true)
5859

5960
myMenu.Add("Hello World!").OnClick(func(ctx *application.Context) {
6061
println("Hello World!")

v3/go.mod

+52-55
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
module github.com/wailsapp/wails/v3
22

3-
go 1.23.4
3+
go 1.24.0
44

55
require (
66
github.com/Masterminds/semver v1.5.0
7-
github.com/adrg/xdg v0.5.0
8-
github.com/atterpac/refresh v0.8.3
7+
github.com/adrg/xdg v0.5.3
8+
github.com/atterpac/refresh v0.8.4
99
github.com/bep/debounce v1.2.1
1010
github.com/charmbracelet/glamour v0.8.0
11-
github.com/ebitengine/purego v0.4.0-alpha.4
12-
github.com/go-git/go-git/v5 v5.13.1
11+
github.com/ebitengine/purego v0.8.2
12+
github.com/go-git/go-git/v5 v5.13.2
1313
github.com/go-ole/go-ole v1.3.0
1414
github.com/godbus/dbus/v5 v5.1.0
1515
github.com/google/go-cmp v0.6.0
@@ -20,55 +20,60 @@ require (
2020
github.com/jaypipes/ghw v0.13.0
2121
github.com/leaanthony/clir v1.7.0
2222
github.com/leaanthony/go-ansi-parser v1.6.1
23-
github.com/leaanthony/gosod v1.0.3
24-
github.com/leaanthony/u v1.1.0
23+
github.com/leaanthony/gosod v1.0.4
24+
github.com/leaanthony/u v1.1.1
2525
github.com/leaanthony/winicon v1.0.0
26-
github.com/lmittmann/tint v1.0.4
27-
github.com/matryer/is v1.4.0
28-
github.com/mattn/go-colorable v0.1.13
26+
github.com/lmittmann/tint v1.0.7
27+
github.com/matryer/is v1.4.1
28+
github.com/mattn/go-colorable v0.1.14
2929
github.com/mattn/go-isatty v0.0.20
30-
github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8
30+
github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c
3131
github.com/pkg/errors v0.9.1
32-
github.com/pterm/pterm v0.12.51
33-
github.com/samber/lo v1.38.1
32+
github.com/pterm/pterm v0.12.80
33+
github.com/samber/lo v1.49.1
3434
github.com/tc-hib/winres v0.3.1
3535
github.com/wailsapp/go-webview2 v1.0.19
3636
github.com/wailsapp/mimetype v1.4.1
3737
github.com/wailsapp/task/v3 v3.40.1-patched3
38-
golang.org/x/sys v0.29.0
39-
golang.org/x/term v0.28.0
40-
golang.org/x/tools v0.29.0
38+
golang.org/x/sys v0.30.0
39+
golang.org/x/term v0.29.0
40+
golang.org/x/tools v0.30.0
4141
gopkg.in/ini.v1 v1.67.0
4242
gopkg.in/yaml.v3 v3.0.1
43-
modernc.org/sqlite v1.21.0
43+
modernc.org/sqlite v1.35.0
4444
)
4545

4646
require (
47-
atomicgo.dev/cursor v0.1.1 // indirect
48-
atomicgo.dev/keyboard v0.2.8 // indirect
47+
atomicgo.dev/schedule v0.1.0 // indirect
48+
github.com/ncruces/go-strftime v0.1.9 // indirect
49+
)
50+
51+
require (
52+
atomicgo.dev/cursor v0.2.0 // indirect
53+
atomicgo.dev/keyboard v0.2.9 // indirect
4954
dario.cat/mergo v1.0.1 // indirect
5055
github.com/AlekSi/pointer v1.2.0 // indirect
51-
github.com/BurntSushi/toml v1.3.2 // indirect
56+
github.com/BurntSushi/toml v1.4.0 // indirect
5257
github.com/Ladicle/tabwriter v1.0.0 // indirect
5358
github.com/Masterminds/goutils v1.1.1 // indirect
5459
github.com/Masterminds/semver/v3 v3.3.1 // indirect
5560
github.com/Masterminds/sprig/v3 v3.3.0 // indirect
5661
github.com/Microsoft/go-winio v0.6.2 // indirect
57-
github.com/ProtonMail/go-crypto v1.1.4 // indirect
62+
github.com/ProtonMail/go-crypto v1.1.5 // indirect
5863
github.com/StackExchange/wmi v1.2.1 // indirect
59-
github.com/alecthomas/chroma/v2 v2.14.0 // indirect
64+
github.com/alecthomas/chroma/v2 v2.15.0 // indirect
6065
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
6166
github.com/aymerick/douceur v0.2.0 // indirect
6267
github.com/blakesmith/ar v0.0.0-20190502131153-809d4375e1fb // indirect
6368
github.com/cavaliergopher/cpio v1.0.1 // indirect
6469
github.com/chainguard-dev/git-urls v1.0.2 // indirect
65-
github.com/charmbracelet/lipgloss v0.12.1 // indirect
66-
github.com/charmbracelet/x/ansi v0.1.4 // indirect
67-
github.com/cloudflare/circl v1.5.0 // indirect
70+
github.com/charmbracelet/lipgloss v1.0.0 // indirect
71+
github.com/charmbracelet/x/ansi v0.8.0 // indirect
72+
github.com/cloudflare/circl v1.6.0 // indirect
6873
github.com/containerd/console v1.0.4 // indirect
69-
github.com/cyphar/filepath-securejoin v0.4.0 // indirect
74+
github.com/cyphar/filepath-securejoin v0.4.1 // indirect
7075
github.com/davecgh/go-spew v1.1.1 // indirect
71-
github.com/dlclark/regexp2 v1.11.0 // indirect
76+
github.com/dlclark/regexp2 v1.11.5 // indirect
7277
github.com/dominikbraun/graph v0.23.0 // indirect
7378
github.com/dustin/go-humanize v1.0.1 // indirect
7479
github.com/emirpasic/gods v1.18.1 // indirect
@@ -80,7 +85,7 @@ require (
8085
github.com/gobwas/glob v0.2.3 // indirect
8186
github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8 // indirect
8287
github.com/google/rpmpack v0.6.1-0.20240329070804-c2247cbb881a // indirect
83-
github.com/gookit/color v1.5.2 // indirect
88+
github.com/gookit/color v1.5.4 // indirect
8489
github.com/goreleaser/chglog v0.6.2 // indirect
8590
github.com/goreleaser/fileglob v1.3.0 // indirect
8691
github.com/gorilla/css v1.0.1 // indirect
@@ -89,12 +94,11 @@ require (
8994
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
9095
github.com/jchv/go-winloader v0.0.0-20210711035445-715c2860da7e // indirect
9196
github.com/joho/godotenv v1.5.1 // indirect
92-
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect
9397
github.com/kevinburke/ssh_config v1.2.0 // indirect
9498
github.com/klauspost/compress v1.17.11 // indirect
95-
github.com/klauspost/cpuid/v2 v2.2.7 // indirect
99+
github.com/klauspost/cpuid/v2 v2.2.9 // indirect
96100
github.com/klauspost/pgzip v1.2.6 // indirect
97-
github.com/lithammer/fuzzysearch v1.1.5 // indirect
101+
github.com/lithammer/fuzzysearch v1.1.8 // indirect
98102
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
99103
github.com/mattn/go-runewidth v0.0.16 // indirect
100104
github.com/mattn/go-zglob v0.0.6 // indirect
@@ -103,48 +107,41 @@ require (
103107
github.com/mitchellh/go-homedir v1.1.0 // indirect
104108
github.com/mitchellh/hashstructure/v2 v2.0.2 // indirect
105109
github.com/mitchellh/reflectwalk v1.0.2 // indirect
106-
github.com/mmcloughlin/avo v0.6.0 // indirect
107110
github.com/muesli/cancelreader v0.2.2 // indirect
108111
github.com/muesli/reflow v0.3.0 // indirect
109112
github.com/muesli/termenv v0.15.3-0.20240618155329-98d742f6907a // indirect
110113
github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646 // indirect
111-
github.com/pjbgf/sha1cd v0.3.1 // indirect
114+
github.com/pjbgf/sha1cd v0.3.2 // indirect
112115
github.com/radovskyb/watcher v1.0.7 // indirect
113116
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
114117
github.com/rivo/uniseg v0.4.7 // indirect
115118
github.com/rjeczalik/notify v0.9.3 // indirect
116119
github.com/sajari/fuzzy v1.0.0 // indirect
117120
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 // indirect
118121
github.com/shopspring/decimal v1.4.0 // indirect
119-
github.com/skeema/knownhosts v1.3.0 // indirect
122+
github.com/skeema/knownhosts v1.3.1 // indirect
120123
github.com/spf13/cast v1.7.1 // indirect
121-
github.com/spf13/pflag v1.0.5 // indirect
124+
github.com/spf13/pflag v1.0.6 // indirect
122125
github.com/ulikunitz/xz v0.5.12 // indirect
123126
github.com/xanzy/ssh-agent v0.3.3 // indirect
124-
github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778 // indirect
125-
github.com/yuin/goldmark v1.7.4 // indirect
126-
github.com/yuin/goldmark-emoji v1.0.3 // indirect
127+
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect
128+
github.com/yuin/goldmark v1.7.8 // indirect
129+
github.com/yuin/goldmark-emoji v1.0.4 // indirect
127130
github.com/zeebo/xxh3 v1.0.2 // indirect
128131
gitlab.com/digitalxero/go-conventional-commit v1.0.7 // indirect
129-
golang.org/x/crypto v0.32.0 // indirect
130-
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 // indirect
131-
golang.org/x/exp/typeparams v0.0.0-20250128182459-e0ece0dbea4c
132-
golang.org/x/image v0.21.0 // indirect
133-
golang.org/x/mod v0.22.0 // indirect
134-
golang.org/x/net v0.34.0 // indirect
135-
golang.org/x/sync v0.10.0 // indirect
136-
golang.org/x/text v0.21.0 // indirect
132+
golang.org/x/crypto v0.33.0 // indirect
133+
golang.org/x/exp v0.0.0-20250210185358-939b2ce775ac // indirect
134+
golang.org/x/exp/typeparams v0.0.0-20250210185358-939b2ce775ac
135+
golang.org/x/image v0.24.0 // indirect
136+
golang.org/x/mod v0.23.0 // indirect
137+
golang.org/x/net v0.35.0 // indirect
138+
golang.org/x/sync v0.11.0 // indirect
139+
golang.org/x/text v0.22.0 // indirect
137140
gopkg.in/warnings.v0 v0.1.2 // indirect
138141
gopkg.in/yaml.v2 v2.4.0 // indirect
139142
howett.net/plist v1.0.1 // indirect
140-
lukechampine.com/uint128 v1.2.0 // indirect
141-
modernc.org/cc/v3 v3.40.0 // indirect
142-
modernc.org/ccgo/v3 v3.16.13 // indirect
143-
modernc.org/libc v1.22.3 // indirect
144-
modernc.org/mathutil v1.5.0 // indirect
145-
modernc.org/memory v1.5.0 // indirect
146-
modernc.org/opt v0.1.3 // indirect
147-
modernc.org/strutil v1.1.3 // indirect
148-
modernc.org/token v1.0.1 // indirect
143+
modernc.org/libc v1.61.13 // indirect
144+
modernc.org/mathutil v1.7.1 // indirect
145+
modernc.org/memory v1.8.2 // indirect
149146
mvdan.cc/sh/v3 v3.10.0 // indirect
150147
)

0 commit comments

Comments
 (0)