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

Method captured

src/manager.cpp:221–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219}
220
221void Manager::captured(const TaskPtr &task)
222{
223 tray_->setCaptureLockedEnabled(capturer_->canCaptureLocked());
224 tray_->blockActions(false);
225
226 SOFT_ASSERT(task, return );
227 LTRACE() << "captured" << task;
228
229 ++activeTaskCount_;
230 tray_->setActiveTaskCount(activeTaskCount_);
231
232 if (!task->isValid()) {
233 finishTask(task);
234 return;
235 }
236
237 recognizer_->recognize(task);
238}
239
240void Manager::captureCanceled()
241{

Callers 3

selectedMethod · 0.80
recognizeMethod · 0.80
recognizeAndTranslateMethod · 0.80

Calls 6

canCaptureLockedMethod · 0.80
blockActionsMethod · 0.80
setActiveTaskCountMethod · 0.80
isValidMethod · 0.45
recognizeMethod · 0.45

Tested by

no test coverage detected