Display client's version on UI (#335)

This commit is contained in:
Maycon Santos 2022-05-27 13:56:12 +02:00 committed by GitHub
parent 889fa646fc
commit 594da0a6b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -90,7 +90,7 @@ type serviceClient struct {
icConnected []byte
icDisconnected []byte
// systray menu itmes
// systray menu items
mStatus *systray.MenuItem
mUp *systray.MenuItem
mDown *systray.MenuItem
@ -373,6 +373,9 @@ func (s *serviceClient) onTrayReady() {
systray.AddSeparator()
s.mSettings = systray.AddMenuItem("Settings", "Settings of the application")
systray.AddSeparator()
v := systray.AddMenuItem("v"+system.NetbirdVersion(), "Client Version: "+system.NetbirdVersion())
v.Disable()
systray.AddSeparator()
s.mQuit = systray.AddMenuItem("Quit", "Quit the client app")
go func() {