disable transparency menu item until the device is fully connected (#6439)

This commit is contained in:
Roberto Dip 2022-06-30 10:30:38 -03:00 committed by GitHub
parent ddf4d5a45a
commit d6313c2c15
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View file

@ -0,0 +1 @@
* Disabled the 'Transparency' menu item in Fleet Desktop until the device is successfully connected to the Fleet server.

View file

@ -59,6 +59,7 @@ func main() {
myDeviceItem := systray.AddMenuItem("Initializing...", "")
myDeviceItem.Disable()
transparencyItem := systray.AddMenuItem("Transparency", "")
transparencyItem.Disable()
var insecureSkipVerify bool
if os.Getenv("FLEET_DESKTOP_INSECURE") != "" {
@ -88,6 +89,7 @@ func main() {
myDeviceItem.SetTitle("My device")
myDeviceItem.Enable()
myDeviceItem.SetTooltip("")
transparencyItem.Enable()
return
}