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

Method capture

src/manager.cpp:305–318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

303}
304
305void Manager::capture()
306{
307 SOFT_ASSERT(capturer_, return );
308
309 tray_->blockActions(true);
310
311 if (representer_->isVisible()) {
312 representer_->hide();
313 QThread::usleep(resultHideWaitUs);
314 }
315
316 capturer_->capture();
317 tray_->setRepeatCaptureEnabled(true);
318}
319
320void Manager::repeatCapture()
321{

Callers 1

contextMenuMethod · 0.45

Calls 4

blockActionsMethod · 0.80
isVisibleMethod · 0.80
hideMethod · 0.80

Tested by

no test coverage detected