1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-18 09:00:07 +02:00

Shows a taskbar button earlier in initialising Audacity, so that users can find any start-up dialogs like the VST scanning one, if/when they are hidden behind other windows. Fixes point 1 of summary Bug 646.

This commit is contained in:
james.k.crook@gmail.com 2013-09-30 20:34:10 +00:00
parent 44ea425836
commit aad9d12c39

View File

@ -1167,9 +1167,20 @@ bool AudacityApp::OnInit()
#endif //__WXMAC__
// BG: Create a temporary window to set as the top window
wxFrame *temporarywindow = new wxFrame(NULL, -1, wxT("temporarytopwindow"));
wxFrame *temporarywindow = new wxFrame(NULL, -1, _("Audacity is starting up..."));
SetTopWindow(temporarywindow);
// Iconize and 'Show' the temporary window, only so that we have a button on the taskbar
// from early on in initialising.
// Clicking the taskbar button gives a way for users to find the VST scanning
// dialog, if it is present but hidden behind other windows. They will also
// unfortunately see the 'Audacity is starting up..' dialog. Better than
// thinking nothing is happenning, but not ideal.
// TODO: temporary window should perhaps iconize after it 'raises' child window
// to the front, if we care enough about this case.
temporarywindow->Iconize( true );
temporarywindow->Show(true);
// Initialize the CommandHandler
InitCommandHandler();