diff options
author | ZyanKLee <ZyanKLee@users.noreply.github.com> | 2022-05-24 12:16:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-24 12:16:45 +0200 |
commit | 1231b3cfd71d33f0689e6f33e6abf14a92ef44e5 (patch) | |
tree | fed7e178af79386137ff6e2d00d8242f79cf5618 | |
parent | 9ab760e2fbe8e203877a80a3dd1af7039602c72e (diff) | |
parent | 102d6fd57ac6ec6d847fb1ddf24d54522ce12111 (diff) |
Merge pull request #286 from TheDukeofErl/bugfix/158-filters-disabled-active-fix
fix: Don't show loaded when both filters are disabled
-rw-r--r-- | ui.go | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -55,6 +55,7 @@ const ( var green = color.RGBA{34, 187, 69, 255} var red = color.RGBA{255, 70, 70, 255} var orange = color.RGBA{255, 140, 0, 255} +var lightBlue = color.RGBA{173, 216, 230, 255} var patreonImg *image.RGBA @@ -94,7 +95,11 @@ func mainView(ctx *ntcontext, w *nucular.Window) { } if ctx.noiseSupressorState == loaded { - w.LabelColored("NoiseTorch active", "RC", green) + if (ctx.virtualDeviceInUse) { + w.LabelColored("NoiseTorch active", "RC", green) + } else { + w.LabelColored("NoiseTorch unconfigured", "RC", lightBlue) + } } else if ctx.noiseSupressorState == unloaded { w.LabelColored("NoiseTorch inactive", "RC", red) } else if ctx.noiseSupressorState == inconsistent { |