mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 08:58:41 +00:00
disable transparency menu item until the device is fully connected (#6439)
This commit is contained in:
parent
ddf4d5a45a
commit
d6313c2c15
2 changed files with 3 additions and 0 deletions
|
|
@ -0,0 +1 @@
|
|||
* Disabled the 'Transparency' menu item in Fleet Desktop until the device is successfully connected to the Fleet server.
|
||||
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue