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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user