mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-23 23:03:55 +02:00
Restore non-preset values when Factory Preset -> Defaults is selected
This commit is contained in:
@@ -139,6 +139,14 @@ bool EffectChangeSpeed::SetAutomationParameters(EffectAutomationParameters & par
|
||||
return true;
|
||||
}
|
||||
|
||||
bool EffectChangeSpeed::LoadFactoryDefaults()
|
||||
{
|
||||
mFromVinyl = kVinyl_33AndAThird;
|
||||
mFormat = _("hh:mm:ss + milliseconds");
|
||||
|
||||
return Effect::LoadFactoryDefaults();
|
||||
}
|
||||
|
||||
// Effect implementation
|
||||
|
||||
bool EffectChangeSpeed::CheckWhetherSkipEffect()
|
||||
@@ -275,6 +283,9 @@ bool EffectChangeSpeed::Process()
|
||||
|
||||
void EffectChangeSpeed::PopulateOrExchange(ShuttleGui & S)
|
||||
{
|
||||
GetPrivateConfig(GetCurrentSettingsGroup(), wxT("TimeFormat"), mFormat, mFormat);
|
||||
GetPrivateConfig(GetCurrentSettingsGroup(), wxT("VinylChoice"), mFromVinyl, mFromVinyl);
|
||||
|
||||
S.SetBorder(5);
|
||||
|
||||
S.StartVerticalLay(0);
|
||||
@@ -394,9 +405,6 @@ bool EffectChangeSpeed::TransferDataToWindow()
|
||||
return false;
|
||||
}
|
||||
|
||||
GetPrivateConfig(GetCurrentSettingsGroup(), wxT("TimeFormat"), mFormat, mFormat);
|
||||
GetPrivateConfig(GetCurrentSettingsGroup(), wxT("VinylChoice"), mFromVinyl, mFromVinyl);
|
||||
|
||||
if (mFromVinyl == kVinyl_NA)
|
||||
{
|
||||
mFromVinyl = kVinyl_33AndAThird;
|
||||
|
Reference in New Issue
Block a user