1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-20 22:30:05 +02:00

Merge pull request #17 from lllucius/fix_meter_refresh

Meter refresh rate not updated when leaving preferences.
This commit is contained in:
Leland Lucius 2015-04-08 06:35:08 -05:00
commit c0d49d5e1a

View File

@ -823,14 +823,14 @@ void Meter::Reset(double sampleRate, bool resetClipping)
// wxTimers seem to be a little unreliable - sometimes they stop for // wxTimers seem to be a little unreliable - sometimes they stop for
// no good reason, so this "primes" it every now and then... // no good reason, so this "primes" it every now and then...
// mTimer.Stop(); mTimer.Stop();
// While it's stopped, empty the queue // While it's stopped, empty the queue
mQueue.Clear(); mQueue.Clear();
mLayoutValid = false; mLayoutValid = false;
// mTimer.Start(1000 / mMeterRefreshRate); mTimer.Start(1000 / mMeterRefreshRate);
Refresh(false); Refresh(false);
} }