Skip to content

Commit d9c50f7

Browse files
committed
Add comment about systray_fake
1 parent caffd81 commit d9c50f7

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

systray/systray.go

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"github.com/kardianos/osext"
99
)
1010

11+
// Systray manages the systray icon with its menu and actions. It also handles the pause/resume behaviour of the agent
1112
type Systray struct {
1213
// Whether the Agent is in Pause mode
1314
Hibernate bool

systray/systray_fake.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// +build cli
22

3+
// Systray_fake gets compiled when the tag 'cli' is present. This is useful to build an agent without trayicon functionalities
34
package systray
45

56
import "os"

systray/systray_real.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// +build !cli
22

3+
// Systray_real gets compiled when the tag 'cli' is missing. This is the default case
34
package systray
45

56
import (

0 commit comments

Comments
 (0)