mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-05-05 20:36:33 -05:00
Show all feature tabs when setup wizard is skipped
This commit is contained in:
parent
4f3d9e3a00
commit
873e073eb6
|
|
@ -391,12 +391,16 @@ void AdvSceneSwitcher::CheckFirstTimeSetup()
|
|||
return;
|
||||
}
|
||||
|
||||
auto macro = FirstRunWizard::ShowWizard(this);
|
||||
bool wasSkipped = false;
|
||||
auto macro = FirstRunWizard::ShowWizard(this, &wasSkipped);
|
||||
if (macro) {
|
||||
renameMacroIfNecessary(macro);
|
||||
QTimer::singleShot(0, this,
|
||||
[this, macro]() { ui->macros->Add(macro); });
|
||||
}
|
||||
if (wasSkipped) {
|
||||
ui->alwaysShowFeatureTabs->setChecked(true);
|
||||
}
|
||||
switcher->Start();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -398,10 +398,14 @@ void FirstRunWizard::markFirstRunComplete()
|
|||
}
|
||||
|
||||
// static
|
||||
std::shared_ptr<Macro> FirstRunWizard::ShowWizard(QWidget *parent)
|
||||
std::shared_ptr<Macro> FirstRunWizard::ShowWizard(QWidget *parent,
|
||||
bool *wasSkipped)
|
||||
{
|
||||
auto wizard = new FirstRunWizard(parent);
|
||||
wizard->exec();
|
||||
if (wasSkipped) {
|
||||
*wasSkipped = (wizard->result() == QDialog::Rejected);
|
||||
}
|
||||
wizard->deleteLater();
|
||||
return wizard->_macro;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -113,7 +113,8 @@ class FirstRunWizard : public QWizard {
|
|||
Q_OBJECT
|
||||
public:
|
||||
explicit FirstRunWizard(QWidget *parent = nullptr);
|
||||
static std::shared_ptr<Macro> ShowWizard(QWidget *parent);
|
||||
static std::shared_ptr<Macro> ShowWizard(QWidget *parent,
|
||||
bool *wasSkipped = nullptr);
|
||||
static bool
|
||||
CreateMacro(std::shared_ptr<Macro> ¯o, const std::string ¯oName,
|
||||
const std::string &conditionId, obs_data_t *conditionData,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user