[Tutorial] Seed tutorialCompleted for existing installs at startup

This commit is contained in:
Lukas Brübach 2026-10-11 17:46:33 +02:00
parent 338f38b2da
commit e4c67f5ea5
2 changed files with 12 additions and 8 deletions

View file

@ -250,14 +250,6 @@ QStringList InterfaceSettings::getUserListExpandedSections() const
bool InterfaceSettings::getTutorialCompleted() const
{
// Upgrading users have settings files but no tutorial key yet: treat the tutorial as seen so they are
// not overlaid on upgrade. Genuinely new installs have no settings files at all, so they still get it.
if (!getSettings().contains("interface/tutorialCompleted")) {
QDir settingsDir = QFileInfo(settingPath).dir();
if (!settingsDir.entryList({"*.ini"}, QDir::Files).isEmpty()) {
return true;
}
}
return getValue("tutorialCompleted", QString(), QString(), false).toBool();
}