MCPcopy Create free account
hub / github.com/aldelaro5/dolphin-memory-engine / onOpenSettings

Method onOpenSettings

Source/GUI/MainWindow.cpp:539–561  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

537}
538
539void MainWindow::onOpenSettings()
540{
541 DlgSettings* dlg = new DlgSettings(this);
542 int dlgResult = dlg->exec();
543 delete dlg;
544 if (dlgResult == QDialog::Accepted)
545 {
546 m_scanner->getUpdateTimer()->stop();
547 m_watcher->getUpdateTimer()->stop();
548 m_watcher->getFreezeTimer()->stop();
549 m_viewer->getUpdateTimer()->stop();
550 if (DolphinComm::DolphinAccessor::getStatus() ==
551 DolphinComm::DolphinAccessor::DolphinStatus::hooked)
552 {
553 m_scanner->getUpdateTimer()->start(SConfig::getInstance().getScannerUpdateTimerMs());
554 m_watcher->getUpdateTimer()->start(SConfig::getInstance().getWatcherUpdateTimerMs());
555 m_watcher->getFreezeTimer()->start(SConfig::getInstance().getFreezeTimerMs());
556 m_viewer->getUpdateTimer()->start(SConfig::getInstance().getViewerUpdateTimerMs());
557 }
558 m_scanner->setShowThreshold(
559 static_cast<size_t>(SConfig::getInstance().getScannerShowThreshold()));
560 }
561}
562
563void MainWindow::onAbout()
564{

Callers

nothing calls this directly

Calls 8

getFreezeTimerMethod · 0.80
getFreezeTimerMsMethod · 0.80
getUpdateTimerMethod · 0.45
setShowThresholdMethod · 0.45

Tested by

no test coverage detected