1
0

kivy+qt: add channel type to details

This commit is contained in:
bitromortac
2022-01-18 14:37:49 +01:00
parent db86aeb83a
commit c203ce083a
3 changed files with 10 additions and 0 deletions

View File

@@ -1153,6 +1153,10 @@ class ChannelType(IntFlag):
byte_length = bit_length // 8 + int(bool(bit_length % 8))
return self.to_bytes(byte_length, byteorder='big')
@property
def name_minimal(self):
return self.name.replace('OPTION_', '')
del LNFC # name is ambiguous without context