mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-08 16:11:14 +02:00
Ensure OnInit() has an event loop
And allow events to flow so the splash window updates under GTK
This commit is contained in:
parent
fa99433113
commit
54676a7228
@ -1144,6 +1144,9 @@ AudacityApp::AudacityApp()
|
|||||||
// main frame
|
// main frame
|
||||||
bool AudacityApp::OnInit()
|
bool AudacityApp::OnInit()
|
||||||
{
|
{
|
||||||
|
// Ensure we have an event loop during initialization
|
||||||
|
wxEventLoopGuarantor eventLoop;
|
||||||
|
|
||||||
delete wxLog::SetActiveTarget(new AudacityLogger);
|
delete wxLog::SetActiveTarget(new AudacityLogger);
|
||||||
|
|
||||||
mLocale = NULL;
|
mLocale = NULL;
|
||||||
@ -1382,6 +1385,7 @@ bool AudacityApp::OnInit()
|
|||||||
wxSTAY_ON_TOP);
|
wxSTAY_ON_TOP);
|
||||||
temporarywindow->SetTitle(_("Audacity is starting up..."));
|
temporarywindow->SetTitle(_("Audacity is starting up..."));
|
||||||
SetTopWindow(temporarywindow);
|
SetTopWindow(temporarywindow);
|
||||||
|
wxEventLoopBase::GetActive()->YieldFor(wxEVT_CATEGORY_UI);
|
||||||
|
|
||||||
//JKC: Would like to put module loading here.
|
//JKC: Would like to put module loading here.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user