1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-21 15:08:01 +02:00

Expose "msg" parameter in Effect::TotalProgress().

This commit is contained in:
Max Maisel 2018-07-24 17:10:52 +02:00
parent 473e561f5b
commit d707f68189
2 changed files with 3 additions and 3 deletions

View File

@ -1974,10 +1974,10 @@ void Effect::IncludeNotSelectedPreviewTracks(bool includeNotSelected)
mPreviewWithNotSelected = includeNotSelected; mPreviewWithNotSelected = includeNotSelected;
} }
bool Effect::TotalProgress(double frac) bool Effect::TotalProgress(double frac, const wxString &msg)
{ {
auto updateResult = (mProgress ? auto updateResult = (mProgress ?
mProgress->Update(frac) : mProgress->Update(frac, msg) :
ProgressResult::Success); ProgressResult::Success);
return (updateResult != ProgressResult::Success); return (updateResult != ProgressResult::Success);
} }

View File

@ -330,7 +330,7 @@ protected:
// is okay, but don't try to undo). // is okay, but don't try to undo).
// Pass a fraction between 0.0 and 1.0 // Pass a fraction between 0.0 and 1.0
bool TotalProgress(double frac); bool TotalProgress(double frac, const wxString & = wxEmptyString);
// Pass a fraction between 0.0 and 1.0, for the current track // Pass a fraction between 0.0 and 1.0, for the current track
// (when doing one track at a time) // (when doing one track at a time)