From 073c6cf8d4756fb17bb3c9aaddf7e3eeffb749cb Mon Sep 17 00:00:00 2001 From: David Newhall II Date: Sat, 4 Dec 2021 01:46:46 -0800 Subject: [PATCH] try to fix a bug --- pkg/client/tray.go | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/pkg/client/tray.go b/pkg/client/tray.go index 0722e3a60..a0d86ba7c 100644 --- a/pkg/client/tray.go +++ b/pkg/client/tray.go @@ -1,5 +1,4 @@ //go:build darwin || windows -// +build darwin windows package client @@ -56,22 +55,18 @@ func (c *Client) setupMenus() { return } - if c.Config.LogConfig.DebugLog == "" { - c.menu["debug_logs"].Hide() - c.menu["debug_logs2"].Hide() - } else { - c.menu["debug_logs"].Show() - c.menu["debug_logs2"].Show() - } - if !c.Config.Debug { c.menu["debug"].Hide() - c.menu["debug_logs"].Hide() - c.menu["debug_logs2"].Hide() } else { c.menu["debug"].Show() - c.menu["debug_logs"].Show() - c.menu["debug_logs2"].Show() + + if c.Config.LogConfig.DebugLog == "" { + c.menu["debug_logs"].Hide() + c.menu["debug_logs2"].Hide() + } else { + c.menu["debug_logs"].Show() + c.menu["debug_logs2"].Show() + } } if c.Config.Services.LogFile == "" {