mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-22 14:32:58 +02:00
Selection toolbars use a little less idle time after commit f0ae4c3
This commit is contained in:
@@ -676,6 +676,7 @@ void SelectionBar::ValuesToControls()
|
|||||||
// A time has been set. Update the control values.
|
// A time has been set. Update the control values.
|
||||||
void SelectionBar::SetTimes(double start, double end, double audio)
|
void SelectionBar::SetTimes(double start, double end, double audio)
|
||||||
{
|
{
|
||||||
|
if ( start != mStart || end != mEnd || audio != mAudio) {
|
||||||
mStart = start;
|
mStart = start;
|
||||||
mEnd = end;
|
mEnd = end;
|
||||||
mLength = end-start;
|
mLength = end-start;
|
||||||
@@ -684,6 +685,7 @@ void SelectionBar::SetTimes(double start, double end, double audio)
|
|||||||
|
|
||||||
ValuesToControls();
|
ValuesToControls();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void SelectionBar::SetSnapTo(int snap)
|
void SelectionBar::SetSnapTo(int snap)
|
||||||
{
|
{
|
||||||
|
@@ -465,6 +465,7 @@ void SpectralSelectionBar::SetBounds()
|
|||||||
|
|
||||||
void SpectralSelectionBar::SetFrequencies(double bottom, double top)
|
void SpectralSelectionBar::SetFrequencies(double bottom, double top)
|
||||||
{
|
{
|
||||||
|
if ( mLow != bottom || mHigh != top ) {
|
||||||
mLow = bottom;
|
mLow = bottom;
|
||||||
mHigh = top;
|
mHigh = top;
|
||||||
|
|
||||||
@@ -475,6 +476,7 @@ void SpectralSelectionBar::SetFrequencies(double bottom, double top)
|
|||||||
|
|
||||||
ValuesToControls();
|
ValuesToControls();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void SpectralSelectionBar::SetFrequencySelectionFormatName(const NumericFormatSymbol & formatName)
|
void SpectralSelectionBar::SetFrequencySelectionFormatName(const NumericFormatSymbol & formatName)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user