1
0
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:
v.audacity
2011-03-28 03:12:44 +00:00
parent abb01a533f
commit f3227cabf6

View File

@@ -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