summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZyanKLee <ZyanKLee@users.noreply.github.com>2022-05-24 12:16:45 +0200
committerGitHub <noreply@github.com>2022-05-24 12:16:45 +0200
commit1231b3cfd71d33f0689e6f33e6abf14a92ef44e5 (patch)
treefed7e178af79386137ff6e2d00d8242f79cf5618
parent9ab760e2fbe8e203877a80a3dd1af7039602c72e (diff)
parent102d6fd57ac6ec6d847fb1ddf24d54522ce12111 (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.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/ui.go b/ui.go
index dcf682d..db1d026 100644
--- a/ui.go
+++ b/ui.go
@@ -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 {