Remove some unneeded debugging

This commit is contained in:
Leland Lucius 2021-02-18 11:14:27 -06:00
parent 9a0753d214
commit de6e65ffa3
2 changed files with 10 additions and 1 deletions

View File

@ -892,7 +892,6 @@ void ProjectFileManager::OpenFile(const FilePath &fileNameArg, bool addtohistory
return;
}
printf("fileexists %d\n", wxFileExists(fileName));
if (!::wxFileExists(fileName)) {
AudacityMessageBox(
XO("Could not open file: %s").Format( fileName ),

View File

@ -654,6 +654,16 @@ void ScreenshotBigDialog::DoCapture(int captureMode)
if (!mCommand->Apply(mContext))
mStatus->SetStatusText(_("Capture failed!"), mainStatusBarField);
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
wxWindow *w = wxFindWindowByLabel(XO("Long Message").Translation());
if (w) {
w->SetWindowStyle(w->GetWindowStyle() | wxSTAY_ON_TOP);
w->Raise();
}
}
void ScreenshotBigDialog::OnCaptureSomething(wxCommandEvent & event)