diff --git a/src/AudacityApp.cpp b/src/AudacityApp.cpp index 94f970f4f..cb17f4cc4 100644 --- a/src/AudacityApp.cpp +++ b/src/AudacityApp.cpp @@ -1278,13 +1278,15 @@ bool AudacityApp::OnInit() // opened. So use CallAfter() to delay the rest of initialization. // See CreateSingleInstanceChecker() where we send those paths over a // socket to the prior instance. + + // This call is what probably makes the sleep unnecessary: + MacFinishLaunching(); + using namespace std::chrono; // This sleep may be unnecessary, but it is harmless. It less NS framework // events arrive on another thread, but it might not always be long enough. std::this_thread::sleep_for(100ms); CallAfter([this]{ - // This call is what probably makes the sleep unnecessary: - MacFinishLaunching(); if (!InitPart2()) exit(-1); });