From aff3cd01c514236ffb06398a5b65bf6753285304 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Wed, 30 Apr 2014 22:17:43 +0200 Subject: [PATCH] Don't show Offline badge when global disco is disabled (fixes #167) --- cmd/syncthing/gui.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/syncthing/gui.go b/cmd/syncthing/gui.go index 2b0b23849..821cada13 100644 --- a/cmd/syncthing/gui.go +++ b/cmd/syncthing/gui.go @@ -190,7 +190,7 @@ func restGetSystem(w http.ResponseWriter) { res["goroutines"] = runtime.NumGoroutine() res["alloc"] = m.Alloc res["sys"] = m.Sys - if discoverer != nil { + if cfg.Options.GlobalAnnEnabled && discoverer != nil { res["extAnnounceOK"] = discoverer.ExtAnnounceOK() } cpuUsageLock.RLock()