mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-17 02:51:27 +00:00
Implement progress failures
I took the liberty to improve the obvious failure cases where a red progress bar would be useful.
This commit is contained in:
@ -389,7 +389,6 @@ void plOperationProgress::SetAborting()
|
||||
hsSetBits(fFlags, kAborting);
|
||||
plProgressMgr::GetInstance()->IUpdateCallbackProc(this);
|
||||
fMax = fValue = 0.f;
|
||||
hsClearBits(fFlags, kAborting);
|
||||
}
|
||||
|
||||
void plOperationProgress::SetRetry()
|
||||
|
@ -153,6 +153,7 @@ class plOperationProgress
|
||||
// progress bars above this one know to adjust their totals to not include any amount
|
||||
// that wasn't completed, and will set this progress bar to zero
|
||||
void SetAborting();
|
||||
bool IsAborting() { return hsCheckBits(fFlags, kAborting); }
|
||||
// If you're reusing an existing progress bar to retry a failed operation, call this.
|
||||
// It will set the retry flag, and reset the progress bar so the next update will
|
||||
// count as the first. If you set retry in RegisterOperation, don't use this too.
|
||||
|
Reference in New Issue
Block a user