Save key for unsupported add-on columns
This commit is contained in:
parent
a5c02910a6
commit
6abb05d074
@ -551,7 +551,7 @@ class ItemState(ABC):
|
||||
try:
|
||||
return self._columns[key]
|
||||
except KeyError:
|
||||
self._columns[key] = Column()
|
||||
self._columns[key] = Column(key)
|
||||
return self._columns[key]
|
||||
|
||||
# Columns and sorting
|
||||
@ -771,7 +771,7 @@ class NoteState(ItemState):
|
||||
|
||||
@dataclass
|
||||
class Column:
|
||||
key: str = None
|
||||
key: str
|
||||
label: str = field(default_factory=tr.browsing_addon)
|
||||
is_sortable: bool = False
|
||||
sorts_reversed: bool = False
|
||||
|
Loading…
Reference in New Issue
Block a user