1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-21 08:27:13 +01:00

Move management of saved window size into ProjectManager...

... So that class AllProjects does not use ProjectWindow
This commit is contained in:
Paul Licameli
2019-05-29 15:02:44 -04:00
parent 4274d44ab7
commit 0d1d8d20c6
3 changed files with 16 additions and 11 deletions

View File

@@ -479,6 +479,10 @@ static void QuitAudacity(bool bForce)
else
/*end+*/
{
if (AllProjects{}.size())
// PRL: Always did at least once before close might be vetoed
// though I don't know why that is important
ProjectManager::SaveWindowSize();
bool closedAll = AllProjects::Close( bForce );
if ( !closedAll )
{
@@ -1987,6 +1991,10 @@ void AudacityApp::OnEndSession(wxCloseEvent & event)
// Try to close each open window. If the user hits Cancel
// in a Save Changes dialog, don't continue.
gIsQuitting = true;
if (AllProjects{}.size())
// PRL: Always did at least once before close might be vetoed
// though I don't know why that is important
ProjectManager::SaveWindowSize();
bool closedAll = AllProjects::Close( force );
if ( !closedAll )
{