Commit 860a9c7a authored by Martin Kampas's avatar Martin Kampas

[ssuks] Allow to inhibit implicit feature suggestions. Contribute to JB#41324

parent 236af598
...@@ -345,12 +345,15 @@ bool SsuKickstarter::write(const QString &kickstart) ...@@ -345,12 +345,15 @@ bool SsuKickstarter::write(const QString &kickstart)
: "release")) : "release"))
.arg(repoOverride.value("version")); .arg(repoOverride.value("version"));
// Feature names can be prefixed with '-' to inhibit implicit suggestion
QStringList featuresList = deviceInfo.value("img-features").toStringList(); QStringList featuresList = deviceInfo.value("img-features").toStringList();
// Add developer-mode feature to rnd images by default // Add developer-mode feature to rnd images by default
if (rndMode) if (rndMode && !featuresList.contains("-developer-mode"))
featuresList << "developer-mode"; featuresList << "developer-mode";
featuresList = featuresList.filter(QRegExp("^[^-]"));
QString suggestedFeatures; QString suggestedFeatures;
// work around some idiotic JS list parsing on our side by terminating one-element list by comma // work around some idiotic JS list parsing on our side by terminating one-element list by comma
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment