diff --git a/src/app/Toolbar.cpp b/src/app/Toolbar.cpp index e9cbd67d..d0c98a75 100644 --- a/src/app/Toolbar.cpp +++ b/src/app/Toolbar.cpp @@ -67,6 +67,7 @@ struct SampleRateItem : MenuItem { float sampleRate; void onAction() { gSampleRate = sampleRate; + gPaused = false; } }; @@ -90,7 +91,10 @@ struct SampleRateChoice : ChoiceButton { } } void step() { - text = stringf("%.0f Hz", gSampleRate); + if (gPaused) + text = "Paused"; + else + text = stringf("%.0f Hz", gSampleRate); } };