Skip to content

Commit

Permalink
Merge pull request #35 from Sclafus/senpai
Browse files Browse the repository at this point in the history
Automatically open the setup page if it was never completed before
  • Loading branch information
Sclafus authored Dec 9, 2022
2 parents a823cc6 + 0c1c489 commit 516c784
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ MainWindow::MainWindow(QWidget *parent) :

twitchCommandHandler = new TwitchCommandHandler();
this->setupSignals();

if(!settings.value("setup/completed").toBool()){
on_actionStart_Setup_triggered();
}
}


Expand Down
2 changes: 2 additions & 0 deletions src/setupwizard/setupwizard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,4 +124,6 @@ void SetupWizard::saveData(QJsonObject data)
settings.setValue("osuirc/password", osuircData["password"].toString());
settings.setValue("osuirc/server", osuircData["server"].toString());
settings.setValue("osuirc/port", osuircData["port"].toInt());

settings.setValue("setup/completed", true);
}

0 comments on commit 516c784

Please sign in to comment.