File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -324,12 +324,12 @@ func (s *serviceClient) updateStatus() error {
324324 return err
325325 }
326326
327- if status .Status == string (internal .StatusConnected ) {
327+ if status .Status == string (internal .StatusConnected ) && ! s . mUp . Disabled () {
328328 systray .SetIcon (s .icConnected )
329329 s .mStatus .SetTitle ("Connected" )
330330 s .mUp .Disable ()
331331 s .mDown .Enable ()
332- } else {
332+ } else if status . Status != string ( internal . StatusConnected ) && s . mUp . Disabled () {
333333 systray .SetIcon (s .icDisconnected )
334334 s .mStatus .SetTitle ("Disconnected" )
335335 s .mDown .Disable ()
Original file line number Diff line number Diff line change @@ -118,3 +118,5 @@ require (
118118)
119119
120120replace github.com/kardianos/service => github.com/netbirdio/service v0.0.0-20220905002524-6ac14ad5ea84
121+
122+ replace github.com/getlantern/systray => github.com/netbirdio/systray v0.0.0-20221012095658-dc8eda872c0c
Original file line number Diff line number Diff line change @@ -178,8 +178,6 @@ github.com/getlantern/hidden v0.0.0-20190325191715-f02dbb02be55 h1:XYzSdCbkzOC0F
178178github.com/getlantern/hidden v0.0.0-20190325191715-f02dbb02be55 /go.mod h1:6mmzY2kW1TOOrVy+r41Za2MxXM+hhqTtY3oBKd2AgFA =
179179github.com/getlantern/ops v0.0.0-20190325191751-d70cb0d6f85f h1:wrYrQttPS8FHIRSlsrcuKazukx/xqO/PpLZzZXsF+EA =
180180github.com/getlantern/ops v0.0.0-20190325191751-d70cb0d6f85f /go.mod h1:D5ao98qkA6pxftxoqzibIBBrLSUli+kYnJqrgBf9cIA =
181- github.com/getlantern/systray v1.2.1 h1:udsC2k98v2hN359VTFShuQW6GGprRprw6kD6539JikI =
182- github.com/getlantern/systray v1.2.1 /go.mod h1:AecygODWIsBquJCJFop8MEQcJbWFfw/1yWbVabNgpCM =
183181github.com/ghodss/yaml v0.0.0-20150909031657-73d445a93680 /go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04 =
184182github.com/ghodss/yaml v1.0.0 /go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04 =
185183github.com/gin-contrib/sse v0.1.0 /go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI =
@@ -474,6 +472,8 @@ github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRW
474472github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f /go.mod h1:ZdcZmHo+o7JKHSa8/e818NopupXU1YMK5fe1lsApnBw =
475473github.com/netbirdio/service v0.0.0-20220905002524-6ac14ad5ea84 h1:u8kpzR9ld1uAeH/BAXsS0SfcnhooLWeO7UgHSBVPD9I =
476474github.com/netbirdio/service v0.0.0-20220905002524-6ac14ad5ea84 /go.mod h1:CIMRFEJVL+0DS1a3Nx06NaMn4Dz63Ng6O7dl0qH0zVM =
475+ github.com/netbirdio/systray v0.0.0-20221012095658-dc8eda872c0c h1:wK/s4nyZj/GF/kFJQjX6nqNfE0G3gcqd6hhnPCyp4sw =
476+ github.com/netbirdio/systray v0.0.0-20221012095658-dc8eda872c0c /go.mod h1:AecygODWIsBquJCJFop8MEQcJbWFfw/1yWbVabNgpCM =
477477github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646 /go.mod h1:jpp1/29i3P1S/RLdc7JQKbRpFeM1dOBd8T9ki5s+AY8 =
478478github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e /go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno =
479479github.com/nxadm/tail v1.4.4 /go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A =
You can’t perform that action at this time.
0 commit comments