Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dont build menu when not showing, update systray #1897

Merged
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions ee/desktop/user/menu/menu_systray.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@
buildMutex.Lock()
defer buildMutex.Unlock()

if !systray.IsReady() {

Check failure on line 43 in ee/desktop/user/menu/menu_systray.go

View workflow job for this annotation

GitHub Actions / govulncheck (ubuntu-latest)

undefined: systray.IsReady

Check failure on line 43 in ee/desktop/user/menu/menu_systray.go

View workflow job for this annotation

GitHub Actions / govulncheck (macos-latest)

undefined: systray.IsReady

Check failure on line 43 in ee/desktop/user/menu/menu_systray.go

View workflow job for this annotation

GitHub Actions / lint (ubuntu-latest)

undefined: systray.IsReady) (typecheck)

Check failure on line 43 in ee/desktop/user/menu/menu_systray.go

View workflow job for this annotation

GitHub Actions / lint (ubuntu-latest)

undefined: systray.IsReady) (typecheck)

Check failure on line 43 in ee/desktop/user/menu/menu_systray.go

View workflow job for this annotation

GitHub Actions / lint (ubuntu-latest)

undefined: systray.IsReady (typecheck)

Check failure on line 43 in ee/desktop/user/menu/menu_systray.go

View workflow job for this annotation

GitHub Actions / lint (ubuntu-latest)

undefined: systray.IsReady) (typecheck)

Check failure on line 43 in ee/desktop/user/menu/menu_systray.go

View workflow job for this annotation

GitHub Actions / lint (ubuntu-latest)

undefined: systray.IsReady) (typecheck)

Check failure on line 43 in ee/desktop/user/menu/menu_systray.go

View workflow job for this annotation

GitHub Actions / lint (ubuntu-latest)

undefined: systray.IsReady (typecheck)

Check failure on line 43 in ee/desktop/user/menu/menu_systray.go

View workflow job for this annotation

GitHub Actions / launcher (ubuntu-20.04)

undefined: systray.IsReady

Check failure on line 43 in ee/desktop/user/menu/menu_systray.go

View workflow job for this annotation

GitHub Actions / launcher (ubuntu-20.04)

undefined: systray.IsReady

Check failure on line 43 in ee/desktop/user/menu/menu_systray.go

View workflow job for this annotation

GitHub Actions / lint (macos-latest)

undefined: systray.IsReady) (typecheck)

Check failure on line 43 in ee/desktop/user/menu/menu_systray.go

View workflow job for this annotation

GitHub Actions / lint (macos-latest)

undefined: systray.IsReady) (typecheck)

Check failure on line 43 in ee/desktop/user/menu/menu_systray.go

View workflow job for this annotation

GitHub Actions / lint (macos-latest)

undefined: systray.IsReady (typecheck)

Check failure on line 43 in ee/desktop/user/menu/menu_systray.go

View workflow job for this annotation

GitHub Actions / lint (macos-latest)

undefined: systray.IsReady) (typecheck)

Check failure on line 43 in ee/desktop/user/menu/menu_systray.go

View workflow job for this annotation

GitHub Actions / lint (macos-latest)

undefined: systray.IsReady) (typecheck)

Check failure on line 43 in ee/desktop/user/menu/menu_systray.go

View workflow job for this annotation

GitHub Actions / lint (macos-latest)

undefined: systray.IsReady (typecheck)

Check failure on line 43 in ee/desktop/user/menu/menu_systray.go

View workflow job for this annotation

GitHub Actions / govulncheck (windows-latest)

undefined: systray.IsReady

Check failure on line 43 in ee/desktop/user/menu/menu_systray.go

View workflow job for this annotation

GitHub Actions / launcher (macos-13)

undefined: systray.IsReady

Check failure on line 43 in ee/desktop/user/menu/menu_systray.go

View workflow job for this annotation

GitHub Actions / launcher (macos-13)

undefined: systray.IsReady

Check failure on line 43 in ee/desktop/user/menu/menu_systray.go

View workflow job for this annotation

GitHub Actions / launcher (windows-latest)

undefined: systray.IsReady

Check failure on line 43 in ee/desktop/user/menu/menu_systray.go

View workflow job for this annotation

GitHub Actions / launcher (windows-latest)

undefined: systray.IsReady
// if we never started the menu, don't do anything
return
}

// Remove all menu items each time we rebuild the menu
systray.ResetMenu()

Expand Down
Loading