1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-10 17:37:45 +02:00

Bug 2323 - Win/Mac: Screenshot tool: success/completion dialog is hidden/obscured by the Screenshot dialog

This commit is contained in:
Leland Lucius 2021-02-18 11:43:47 -06:00
parent de6e65ffa3
commit 5ddf6d0037

View File

@ -656,13 +656,11 @@ void ScreenshotBigDialog::DoCapture(int captureMode)
Show();
// Bug 2323: (100% hackage alert) Since the command target dialog is not
// accessible from outside the command, this is the only way we can get
// the window on top of this dialog. It also requires that the LongMessageDialog
// command target have the wxSTAY_ON_TOP flag
// accessible from outside the command, this seems to be the only way we
// can get the window on top of this dialog.
wxWindow *w = wxFindWindowByLabel(XO("Long Message").Translation());
if (w) {
w->SetWindowStyle(w->GetWindowStyle() | wxSTAY_ON_TOP);
w->Raise();
}
}