Commit 5b4fd55
committed
UIService: be careful setting status/progress
It is reasonable to want to reset only the status or progress of a UI
using a StatusEvent. However, the setting of both was being enforced by
the DefaultUIService's implementation.
Now, we check the received StatusEvent. The progress is only set if the
max is >= 0, and the message is only set if the string is not null.1 parent 6cfca44 commit 5b4fd55
1 file changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
448 | 448 | | |
449 | 449 | | |
450 | 450 | | |
| 451 | + | |
451 | 452 | | |
452 | 453 | | |
453 | 454 | | |
454 | | - | |
455 | | - | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
456 | 461 | | |
457 | 462 | | |
458 | 463 | | |
| |||
0 commit comments