Browse Source

Add paused indicator to toolbar, engine unpauses if samplerate is

selected
tags/v0.4.0
Andrew Belt 7 years ago
parent
commit
64a5c87d68
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      src/app/Toolbar.cpp

+ 5
- 1
src/app/Toolbar.cpp View File

@@ -67,6 +67,7 @@ struct SampleRateItem : MenuItem {
float sampleRate; float sampleRate;
void onAction() { void onAction() {
gSampleRate = sampleRate; gSampleRate = sampleRate;
gPaused = false;
} }
}; };


@@ -90,7 +91,10 @@ struct SampleRateChoice : ChoiceButton {
} }
} }
void step() { void step() {
text = stringf("%.0f Hz", gSampleRate);
if (gPaused)
text = "Paused";
else
text = stringf("%.0f Hz", gSampleRate);
} }
}; };




Loading…
Cancel
Save