mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 00:49:03 +00:00
add fleet desktop version in menu (#6187)
This commit is contained in:
parent
84dcf1f2a3
commit
3ff18e2ae0
1 changed files with 7 additions and 0 deletions
|
|
@ -15,6 +15,7 @@ import (
|
|||
"github.com/getlantern/systray"
|
||||
)
|
||||
|
||||
// version is set at compile time via -ldflags
|
||||
var version = "unknown"
|
||||
|
||||
func main() {
|
||||
|
|
@ -44,6 +45,12 @@ func main() {
|
|||
|
||||
systray.SetTemplateIcon(icoBytes, icoBytes)
|
||||
systray.SetTooltip("Fleet Device Management Menu.")
|
||||
|
||||
// Add a disabled menu item with the current version
|
||||
versionItem := systray.AddMenuItem(fmt.Sprintf("Fleet Desktop v%s", version), "")
|
||||
versionItem.Disable()
|
||||
systray.AddSeparator()
|
||||
|
||||
myDeviceItem := systray.AddMenuItem("Initializing...", "")
|
||||
myDeviceItem.Disable()
|
||||
transparencyItem := systray.AddMenuItem("Transparency", "")
|
||||
|
|
|
|||
Loading…
Reference in a new issue