mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 14:33:31 +02:00
don't return gui only values from DS settings json
This commit is contained in:
parent
27f06e2d37
commit
5afb0792dc
2 changed files with 3 additions and 2 deletions
|
@ -10,7 +10,7 @@
|
|||
"help": "Click the button above to connect your High Fidelity metaverse account.",
|
||||
"button_label": "Connect High Fidelity Account",
|
||||
"href": "https://metaverse.highfidelity.com/oauth/authorize?client_id=38e572ed35bc4d34c41fbf1fb4d00071bb7328b3d0ba06d1fba64aa3f44e71e4&redirect_uri=http%3A%2F%2Flocalhost%3A40100%2Foauth&response_type=code&scope=domains",
|
||||
"persist": false
|
||||
"gui-only": true
|
||||
},
|
||||
{
|
||||
"name": "access_token",
|
||||
|
|
|
@ -31,6 +31,7 @@ const QString SETTING_DEFAULT_KEY = "default";
|
|||
const QString DESCRIPTION_NAME_KEY = "name";
|
||||
const QString SETTING_DESCRIPTION_TYPE_KEY = "type";
|
||||
const QString DESCRIPTION_COLUMNS_KEY = "columns";
|
||||
const QString VALUE_GUI_ONLY_FLAG_KEY = "gui-only";
|
||||
|
||||
DomainServerSettingsManager::DomainServerSettingsManager() :
|
||||
_descriptionArray(),
|
||||
|
@ -187,7 +188,7 @@ QJsonObject DomainServerSettingsManager::responseObjectForType(const QString& ty
|
|||
|
||||
QJsonObject settingObject = settingValue.toObject();
|
||||
|
||||
if (!settingObject[VALUE_HIDDEN_FLAG_KEY].toBool()) {
|
||||
if (!settingObject[VALUE_HIDDEN_FLAG_KEY].toBool() && !settingObject[VALUE_GUI_ONLY_FLAG_KEY].toBool()) {
|
||||
QJsonArray affectedTypesArray = settingObject[AFFECTED_TYPES_JSON_KEY].toArray();
|
||||
if (affectedTypesArray.isEmpty()) {
|
||||
affectedTypesArray = groupObject[AFFECTED_TYPES_JSON_KEY].toArray();
|
||||
|
|
Loading…
Reference in a new issue