returns true if the task was cancelled before completion
| 125 | |
| 126 | // returns true if the task was cancelled before completion |
| 127 | bool TaskManager::BaseTemplateTaskData::update_progress(bool p_force_refresh) { |
| 128 | if (progress_enabled && progress.is_valid()) { |
| 129 | if (progress->step(_get_task_description(), get_current_task_step_value(), p_force_refresh)) { |
| 130 | if (!is_canceled()) { |
| 131 | cancel(); |
| 132 | } |
| 133 | } |
| 134 | if (is_done() && auto_close_progress_bar()) { |
| 135 | finish_progress(); |
| 136 | } |
| 137 | } |
| 138 | |
| 139 | return is_canceled(); |
| 140 | } |
| 141 | bool TaskManager::BaseTemplateTaskData::is_timed_out() const { |
| 142 | return timed_out; |
| 143 | } |
no test coverage detected