Disabling Cancel button in TaskProgressView

Issue #774 new
A. Walter
created an issue

If you have a long-running task that should not, or cannot simply, be stopped during its execution, you may prefer to disable (or hide?) the Cancel button in the TaskProgressView to not suggest to the user that the task can be cancelled if that is not actually the case.

It would be very helpful if TaskProgressView provided a way to mark a task as non-cancellable, and accordingly disable the Cancel button for such tasks.