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:
parent
2beacb5396
commit
fe1a0844d0
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user