1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-06 14:52:34 +02:00

Correct the disabling of Minimize menu item

This commit is contained in:
Paul Licameli 2016-06-29 14:38:09 -04:00
parent 2beacb5396
commit fe1a0844d0

View File

@ -1806,7 +1806,7 @@ CommandFlag AudacityProject::GetUpdateFlags()
flags |= CanStopAudioStreamFlag; flags |= CanStopAudioStreamFlag;
if (auto focus = wxWindow::FindFocus()) { if (auto focus = wxWindow::FindFocus()) {
while (focus && !focus->IsTopLevel()) while (focus && focus->GetParent())
focus = focus->GetParent(); focus = focus->GetParent();
if (focus && !static_cast<wxTopLevelWindow*>(focus)->IsIconized()) if (focus && !static_cast<wxTopLevelWindow*>(focus)->IsIconized())
flags |= NotMinimizedFlag; flags |= NotMinimizedFlag;