fix incorrect term type of "use_graphic_device"
fix incorrect enablement checking in "dep" command output in shconfig
return 256
@"Graphic Devices"
- def use_graphic_dev() -> int:
+ def use_graphic_dev() -> bool:
"""
Support of graphical devices and display protocol
"""
- return False
\ No newline at end of file
+ return False
parent = NodeProperty.Parent[self]
if isinstance(val, bool):
- en = en and val
+ en = val
if isinstance(parent, ConfigNode):
en = en and parent.enabled()
indent = " "*inds
dep: NodeDependency = NodeProperty.Dependency[node]
- state = 'enabled' if NodeProperty.Value[node] else 'disabled'
+ state = 'enabled' if NodeProperty.Enabled[node] else 'disabled'
print(f"{indent}* {node._name} (currently {state})")
if dep is None:
return
lines = self.__format_config_list(nodes)
- pydoc.pager("\n".join(lines))
\ No newline at end of file
+ pydoc.pager("\n".join(lines))