wailsapp/wails

When a menu and systray are created, the menus stop working

Valdenirmezadri opened this issue · 2 comments

Description

When a menu and systray are created, the menus stop working

To Reproduce

wails3 dev
click on trayicon
click open
click file > Google or other option

Expected behaviour

I need to use menu and systray in the same project

Screenshots

Gravacao.de.tela.de.2024-10-30.12-04-51.mp4

Project example

menu_and_systray.zip

Attempted Fixes

I tried creating them in different orders.

in separate projects

System Details

# System
┌────────────────────────────────────────────────────────────────────────────────────────┐
| Name         | Fedora Linux                                                            |
| Version      | 41                                                                      |
| ID           | fedora                                                                  |
| Branding     | 41 (Workstation Edition)                                                |
| Platform     | linux                                                                   |
| Architecture | amd64                                                                   |
| CPU          | 11th Gen Intel(R) Core(TM) i5-11320H @ 3.20GHz                          |
| GPU 1        | TigerLake-LP GT2 [Iris Xe Graphics] (Intel Corporation) - Driver: i915  |
| Memory       | 15GB                                                                    |
└────────────────────────────────────────────────────────────────────────────────────────┘

# Build Environment
┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
| Wails CLI      | v3.0.0-alpha.7                                                                                                            |
| Go Version     | go1.23.2                                                                                                                  |
| -buildmode     | exe                                                                                                                       |
| -compiler      | gc                                                                                                                        |
| CGO_CFLAGS     |                                                                                                                           |
| CGO_CPPFLAGS   |                                                                                                                           |
| CGO_CXXFLAGS   |                                                                                                                           |
| CGO_ENABLED    | 1                                                                                                                         |
| CGO_LDFLAGS    |                                                                                                                           |
| DefaultGODEBUG | asynctimerchan=1,gotypesalias=0,httpservecontentkeepheaders=1,tls3des=1,tlskyber=0,x509keypairleaf=0,x509negativeserial=1 |
| GOAMD64        | v1                                                                                                                        |
| GOARCH         | amd64                                                                                                                     |
| GOOS           | linux                                                                                                                     |
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘

# Dependencies
┌───────────────────────────┐
| gtk3       | 3.24.43      |
| npm        | 10.4.0       |
| pkg-config | 2.3.0        |
| webkit2gtk | 2.46.1       |
| gcc        | 14.2.1       |
└─ * - Optional Dependency ─┘

# Diagnosis
 SUCCESS  Your system is ready for Wails development!

Additional context

No response

workaround using "github.com/energye/systray":

Hi there! Thanks for this feedback.
Whilst v3 is in alpha, we have a strict feedback procedure outlined here: https://v3alpha.wails.io/getting-started/feedback
This is to reduce noise whilst the branch is unstable and keep all the information in one place. We'd love to have you as part of the v3 feedback loop so please consider opening a new post there. Just a copy and paste would be fine.
Closing this for now.
Thanks again 🙏