MCPcopy Create free account
hub / github.com/OneMoreGres/ScreenTranslator / finishTask

Method finishTask

src/manager.cpp:204–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202}
203
204void Manager::finishTask(const TaskPtr &task)
205{
206 SOFT_ASSERT(task, return );
207 LTRACE() << "finishTask" << task;
208
209 --activeTaskCount_;
210 tray_->setActiveTaskCount(activeTaskCount_);
211
212 if (!task->isValid()) {
213 tray_->showError(task->error);
214 tray_->setTaskActionsEnabled(false);
215 return;
216 }
217
218 tray_->showSuccess();
219}
220
221void Manager::captured(const TaskPtr &task)
222{

Callers

nothing calls this directly

Calls 5

setActiveTaskCountMethod · 0.80
showErrorMethod · 0.80
setTaskActionsEnabledMethod · 0.80
showSuccessMethod · 0.80
isValidMethod · 0.45

Tested by

no test coverage detected