Skip to content

Commit

Permalink
Merge pull request #143 from Notifiarr/dn2_fix
Browse files Browse the repository at this point in the history
try to fix a bug
  • Loading branch information
davidnewhall authored Dec 22, 2021
2 parents 81ed8a1 + b26104c commit a5a1c2d
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions pkg/client/tray.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
//go:build darwin || windows
// +build darwin windows

package client

Expand Down Expand Up @@ -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 == "" {
Expand Down

0 comments on commit a5a1c2d

Please sign in to comment.