Seticon only when status changes (#504)

* Seticon only when status changes

This prevents a memory leak with the systray lib
when setting the icon every 2 seconds causes a large memory consumption

see https://github.com/getlantern/systray/issues/135

* Use fork with permanent fix
This commit is contained in:
Maycon Santos
2022-10-12 12:25:06 +02:00
committed by GitHub
parent b4e03f4616
commit 6e9a162877
3 changed files with 6 additions and 4 deletions

2
go.mod
View File

@@ -118,3 +118,5 @@ require (
)
replace github.com/kardianos/service => github.com/netbirdio/service v0.0.0-20220905002524-6ac14ad5ea84
replace github.com/getlantern/systray => github.com/netbirdio/systray v0.0.0-20221012095658-dc8eda872c0c