diff options
author | JeffB42 <10328858+JeffB42@users.noreply.github.com> | 2020-12-30 03:50:13 +0300 |
---|---|---|
committer | JeffB42 <10328858+JeffB42@users.noreply.github.com> | 2020-12-30 03:50:13 +0300 |
commit | 38a6666bf731480d15f823190eda7f1a649e4e86 (patch) | |
tree | ca37782db8bfefbfe4899c1148372afece247482 | |
parent | 3b9f9f15ac0f631386167b50b8259a0549554024 (diff) |
added a debug conditional around the third string
-rwxr-xr-x | uiWidgets/SystemInfoBox.go | 11 |
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, |