mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-21 08:27:13 +01:00
Break cycle of Prefs, Languages, FileNames
This commit is contained in:
@@ -1358,13 +1358,15 @@ bool AudacityApp::OnInit()
|
||||
#endif
|
||||
|
||||
// Initialize preferences and language
|
||||
InitPreferences();
|
||||
wxFileName configFileName(FileNames::DataDir(), wxT("audacity.cfg"));
|
||||
InitPreferences( configFileName );
|
||||
PopulatePreferences();
|
||||
// This test must follow PopulatePreferences, because if an error message
|
||||
// must be shown, we need internationalization to have been initialized
|
||||
// first, which was done in PopulatePreferences
|
||||
if ( !CheckWritablePreferences() ) {
|
||||
::AudacityMessageBox( UnwritablePreferencesErrorMessage() );
|
||||
::AudacityMessageBox(
|
||||
UnwritablePreferencesErrorMessage( configFileName ) );
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user