mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-21 16:37:12 +01:00
Attempt to fix platform-specific mLogger creation problems.
This commit is contained in:
@@ -901,10 +901,12 @@ bool AudacityApp::OnInit()
|
||||
}
|
||||
#endif
|
||||
|
||||
mLogger = new wxLogWindow(NULL, wxT("Audacity Log"), false, false);
|
||||
mLogger->SetActiveTarget(mLogger);
|
||||
mLogger->EnableLogging(true);
|
||||
mLogger->SetLogLevel(wxLOG_Max);
|
||||
#ifndef __WXMAC__
|
||||
mLogger = new wxLogWindow(NULL, wxT("Audacity Log"), false, false);
|
||||
mLogger->SetActiveTarget(mLogger);
|
||||
mLogger->EnableLogging(true);
|
||||
mLogger->SetLogLevel(wxLOG_Max);
|
||||
#endif
|
||||
|
||||
// Unused strings that we want to be translated, even though
|
||||
// we're not using them yet...
|
||||
@@ -1112,6 +1114,13 @@ bool AudacityApp::OnInit()
|
||||
// So we also call StartMonitoring when STOP is called.
|
||||
project->MayStartMonitoring();
|
||||
|
||||
#ifdef __WXMAC__
|
||||
mLogger = new wxLogWindow(NULL, wxT("Audacity Log"), false, false);
|
||||
mLogger->SetActiveTarget(mLogger);
|
||||
mLogger->EnableLogging(true);
|
||||
mLogger->SetLogLevel(wxLOG_Max);
|
||||
#endif
|
||||
|
||||
#ifdef USE_FFMPEG
|
||||
FFmpegStartup();
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user