| 446 | } |
| 447 | |
| 448 | void 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 | |
| 467 | void AdvSceneSwitcher::on_openSetupWizard_clicked() |
| 468 | { |
nothing calls this directly
no test coverage detected