1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-25 07:35:44 +01:00

Error reporting for open new project.

This commit is contained in:
James Crook
2021-04-06 18:09:28 +01:00
parent fd5573db7d
commit 5092414757
3 changed files with 27 additions and 5 deletions

View File

@@ -537,18 +537,20 @@ AudacityProject *ProjectManager::New()
auto &window = ProjectWindow::Get( *p );
InitProjectWindow( window );
// wxGTK3 seems to need to require creating the window using default position
// and then manually positioning it.
window.SetPosition(wndRect.GetPosition());
auto &projectFileManager = ProjectFileManager::Get( *p );
projectFileManager.OpenProject();
// This may report an error.
projectFileManager.OpenNewProject();
MenuManager::Get( project ).CreateMenusAndCommands( project );
projectHistory.InitialState();
projectManager.RestartTimer();
// wxGTK3 seems to need to require creating the window using default position
// and then manually positioning it.
window.SetPosition(wndRect.GetPosition());
if(bMaximized) {
window.Maximize(true);
}