Commit 64028867 authored by martyone's avatar martyone

Merge branch 'jb41324' into 'master'

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

See merge request !19
parents 236af598 860a9c7a
......@@ -345,12 +345,15 @@ bool SsuKickstarter::write(const QString &kickstart)
: "release"))
.arg(repoOverride.value("version"));
// Feature names can be prefixed with '-' to inhibit implicit suggestion
QStringList featuresList = deviceInfo.value("img-features").toStringList();
// Add developer-mode feature to rnd images by default
if (rndMode)
if (rndMode && !featuresList.contains("-developer-mode"))
featuresList << "developer-mode";
featuresList = featuresList.filter(QRegExp("^[^-]"));
QString suggestedFeatures;
// 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