core (memory/params): added extra argument to filter out params notably in getParamsUI:
In some case, it may be desirable for a frontend to not expose some parameters to user (e.g. it is the case on Android with the `autoconnect_backend` parameter). An new `extra` parameter has been added to a couple of parameters method for that: it can contain the `ignore` key with a list of [category, name] of parameters to skip.
This commit is contained in:
parent
610a8ff10b
commit
87659cf0f0
1 changed files with 244 additions and 232 deletions
|
|
@ -47,7 +47,7 @@ class Get(base.CommandBase):
|
|||
elif self.args.name is None:
|
||||
try:
|
||||
values_dict = await self.host.bridge.asyncGetParamsValuesFromCategory(
|
||||
self.args.category, self.args.security_limit, self.profile)
|
||||
self.args.category, self.args.security_limit, "", "", self.profile)
|
||||
except Exception as e:
|
||||
self.disp(_(f"can't find requested parameters: {e}"), error=True)
|
||||
self.host.quit(C.EXIT_NOT_FOUND)
|
||||
|
|
|
|||
Loading…
Reference in a new issue