1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-15 15:49:36 +02:00

Bug 1927 - Help > Generate Support Data has very confusing behavior

This commit is contained in:
Leland Lucius 2021-02-10 12:27:42 -06:00
parent 907e830070
commit 52acaf6031

View File

@ -40,6 +40,7 @@ void Generate(wxDebugReport::Context ctx)
// latter.
// rpt.AddAll(ctx);
{
// Provides a progress dialog with indeterminate mode
wxGenericProgressDialog pd(XO("Audacity Support Data").Translation(),
XO("This may take several seconds").Translation(),
@ -63,9 +64,9 @@ void Generate(wxDebugReport::Context ctx)
auto gAudioIO = AudioIOBase::Get();
rpt.AddText(wxT("audiodev.txt"), gAudioIO->GetDeviceInfo(), wxT("Audio Device Info"));
#ifdef EXPERIMENTAL_MIDI_OUT
#ifdef EXPERIMENTAL_MIDI_OUT
rpt.AddText(wxT("mididev.txt"), gAudioIO->GetMidiDeviceInfo(), wxT("MIDI Device Info"));
#endif
#endif
}
auto logger = AudacityLogger::Get();
@ -84,7 +85,7 @@ void Generate(wxDebugReport::Context ctx)
pd.Pulse();
}
thread.join();
}
bool ok = wxDebugReportPreviewStd().Show(rpt);