Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Z-Bolt/OctoScreen.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffB42 <10328858+JeffB42@users.noreply.github.com>2020-12-30 03:50:13 +0300
committerJeffB42 <10328858+JeffB42@users.noreply.github.com>2020-12-30 03:50:13 +0300
commit38a6666bf731480d15f823190eda7f1a649e4e86 (patch)
treeca37782db8bfefbfe4899c1148372afece247482
parent3b9f9f15ac0f631386167b50b8259a0549554024 (diff)
added a debug conditional around the third string
-rwxr-xr-xuiWidgets/SystemInfoBox.go11
1 files changed, 7 insertions, 4 deletions
diff --git a/uiWidgets/SystemInfoBox.go b/uiWidgets/SystemInfoBox.go
index 347c31d..86e858b 100755
--- a/uiWidgets/SystemInfoBox.go
+++ b/uiWidgets/SystemInfoBox.go
@@ -40,10 +40,13 @@ func CreateSystemInfoBox(
ctx.AddClass("font-size-18")
base.Add(label2)
- label3 := utils.MustLabel(str3)
- ctx, _ = label3.GetStyleContext()
- ctx.AddClass("font-size-16")
- base.Add(label3)
+ logLevel := utils.LowerCaseLogLevel()
+ if logLevel == "debug" {
+ label3 := utils.MustLabel(str3)
+ ctx, _ = label3.GetStyleContext()
+ ctx.AddClass("font-size-16")
+ base.Add(label3)
+ }
instance := &SystemInfoBox {
Box: base,