allow to hide config values by calling setValue

This commit is contained in:
andreas 2023-10-27 21:32:55 +02:00
parent 51065acc8d
commit ff1bc50607
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ void exampleInit(GwApi *api){
defaultXdrInt=current->getDefault();
}
//with the true parameter this config value will be hidden
//if you would like the user to be able to see this item, omit the "false", the config value will be read only
//if you would like the user to be able to see this item, omit the "true", the config value will be read only
api->getConfig()->setValue(GwConfigDefinitions::minXdrInterval,defaultXdrInt,true);
// example for a user defined help url that will be shown when clicking the help button
api->addCapability("HELP_URL", "https://www.wellenvogel.de");