From aad9d12c39b0ba302c0230f6f4a08985f963ed45 Mon Sep 17 00:00:00 2001 From: "james.k.crook@gmail.com" Date: Mon, 30 Sep 2013 20:34:10 +0000 Subject: [PATCH] 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. --- src/AudacityApp.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/AudacityApp.cpp b/src/AudacityApp.cpp index 0bc0284fe..12019222d 100644 --- a/src/AudacityApp.cpp +++ b/src/AudacityApp.cpp @@ -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();