mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-16 16:10:06 +02:00
Bug 2491 - Reset Configuration does not reset Extended Import preferences
Better solution...
This commit is contained in:
parent
3dba0eeaa1
commit
2437aa15be
@ -20,7 +20,6 @@
|
|||||||
#include "../effects/EffectManager.h"
|
#include "../effects/EffectManager.h"
|
||||||
#include "../effects/EffectUI.h"
|
#include "../effects/EffectUI.h"
|
||||||
#include "../effects/RealtimeEffectManager.h"
|
#include "../effects/RealtimeEffectManager.h"
|
||||||
#include "../import/Import.h"
|
|
||||||
#include "../prefs/EffectsPrefs.h"
|
#include "../prefs/EffectsPrefs.h"
|
||||||
#include "../prefs/PrefsDialog.h"
|
#include "../prefs/PrefsDialog.h"
|
||||||
|
|
||||||
@ -408,9 +407,6 @@ void OnResetConfig(const CommandContext &context)
|
|||||||
gPrefs->Write(wxT("/Version/Micro"), AUDACITY_REVISION);
|
gPrefs->Write(wxT("/Version/Micro"), AUDACITY_REVISION);
|
||||||
|
|
||||||
gPrefs->Flush();
|
gPrefs->Flush();
|
||||||
|
|
||||||
// Bug 2491 - Reset Configuration does not reset Extended Import preferences
|
|
||||||
Importer::Get().ReadImportItems();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void OnManageGenerators(const CommandContext &context)
|
void OnManageGenerators(const CommandContext &context)
|
||||||
|
@ -92,6 +92,9 @@ wxString ExtImportPrefs::HelpPageName()
|
|||||||
/// Creates the dialog and its contents.
|
/// Creates the dialog and its contents.
|
||||||
void ExtImportPrefs::Populate()
|
void ExtImportPrefs::Populate()
|
||||||
{
|
{
|
||||||
|
// Ensure Importer has current items
|
||||||
|
Importer::Get().ReadImportItems();
|
||||||
|
|
||||||
//------------------------- Main section --------------------
|
//------------------------- Main section --------------------
|
||||||
// Now construct the GUI itself.
|
// Now construct the GUI itself.
|
||||||
// Use 'eIsCreatingFromPrefs' so that the GUI is
|
// Use 'eIsCreatingFromPrefs' so that the GUI is
|
||||||
@ -213,6 +216,8 @@ bool ExtImportPrefs::Commit()
|
|||||||
ShuttleGui S(this, eIsSavingToPrefs);
|
ShuttleGui S(this, eIsSavingToPrefs);
|
||||||
PopulateOrExchange(S);
|
PopulateOrExchange(S);
|
||||||
|
|
||||||
|
Importer::Get().WriteImportItems();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user