mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-26 23:33:49 +01:00
Lower ViewActions as member functions of ProjectWindow
This commit is contained in:
@@ -722,9 +722,10 @@ AudacityProject *ProjectManager::OpenProject(
|
||||
ProjectFileManager::Get( *pProject ).OpenFile( fileNameArg, addtohistory );
|
||||
pNewProject = nullptr;
|
||||
auto &projectFileIO = ProjectFileIO::Get( *pProject );
|
||||
if( projectFileIO.IsRecovered() )
|
||||
ProjectWindow::Get( *pProject ).Zoom(
|
||||
ViewActions::GetZoomOfToFit( *pProject ) );
|
||||
if( projectFileIO.IsRecovered() ) {
|
||||
auto &window = ProjectWindow::Get( *pProject );
|
||||
window.Zoom( window.GetZoomOfToFit() );
|
||||
}
|
||||
|
||||
return pProject;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user