1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-11 00:53:46 +02:00

Eliminate GetActiveProject from Menus.cpp

This commit is contained in:
Paul Licameli
2020-01-07 16:42:05 -05:00
parent 545fab88dd
commit 515e1277bf

View File

@@ -558,12 +558,6 @@ void MenuManager::UpdateMenus( bool checkActive )
{
auto &project = mProject;
//ANSWER-ME: Why UpdateMenus only does active project?
//JKC: Is this test fixing a bug when multiple projects are open?
//so that menu states work even when different in different projects?
if (&project != GetActiveProject())
return;
auto flags = GetUpdateFlags(checkActive);
// Return from this function if nothing's changed since
// the last time we were here.