Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[ssuks] Allow to inhibit implicit feature suggestions. Contribute to …
…JB#41324
  • Loading branch information
martyone committed Mar 15, 2018
1 parent 236af59 commit 860a9c7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ssuks/ssukickstarter.cpp
Expand Up @@ -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
Expand Down

0 comments on commit 860a9c7

Please sign in to comment.