MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / CheckFirstTimeSetup

Method CheckFirstTimeSetup

lib/general.cpp:448–465  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

446}
447
448void AdvSceneSwitcher::CheckFirstTimeSetup()
449{
450 if (!IsFirstRun() || !GetTopLevelMacros().empty()) {
451 return;
452 }
453
454 bool wasSkipped = false;
455 auto macro = wiz::FirstRunWizard::ShowWizard(this, &wasSkipped);
456 if (macro) {
457 renameMacroIfNecessary(macro);
458 QTimer::singleShot(0, this,
459 [this, macro]() { ui->macros->Add(macro); });
460 }
461 if (wasSkipped) {
462 ui->alwaysShowFeatureTabs->setChecked(true);
463 }
464 switcher->Start();
465}
466
467void AdvSceneSwitcher::on_openSetupWizard_clicked()
468{

Callers

nothing calls this directly

Calls 6

IsFirstRunFunction · 0.85
renameMacroIfNecessaryFunction · 0.85
setCheckedMethod · 0.80
emptyMethod · 0.45
AddMethod · 0.45
StartMethod · 0.45

Tested by

no test coverage detected