Browse Source

Hide CPU meter when module is disabled.

tags/v1.1.2
Andrew Belt 5 years ago
parent
commit
33d75cc035
2 changed files with 1 additions and 2 deletions
  1. +1
    -1
      src/app/ModuleWidget.cpp
  2. +0
    -1
      src/engine/Engine.cpp

+ 1
- 1
src/app/ModuleWidget.cpp View File

@@ -259,7 +259,7 @@ void ModuleWidget::draw(const DrawArgs &args) {
Widget::draw(args);

// Power meter
if (module && settings::cpuMeter) {
if (module && settings::cpuMeter && !module->bypass) {
nvgBeginPath(args.vg);
nvgRect(args.vg,
0, box.size.y - 35,


+ 0
- 1
src/engine/Engine.cpp View File

@@ -603,7 +603,6 @@ void Engine::bypassModule(Module *module, bool bypass) {
// This zeros all voltages, but the channel is set to 1 if connected
output.setChannels(0);
}
module->cpuTime = 0.f;
module->bypass = bypass;
}



Loading…
Cancel
Save