Greatly decrease the bloat / complexity of the toolbox

There was a lot of stuff going on that didn't need to happen, so I cut those parts out in order
to improve the overview.
This commit is contained in:
Jaime van Kessel 2018-12-05 13:42:13 +01:00
parent b1440737e6
commit 07d210483c
3 changed files with 32 additions and 32 deletions

View file

@ -29,8 +29,9 @@ class AuthorsModel(ListModel):
self._filter = {} # type: Dict[str, str]
def setMetadata(self, data: List[Dict[str, Union[str, List[str], int]]]):
self._metadata = data
self._update()
if self._metadata != data:
self._metadata = data
self._update()
def _update(self) -> None:
items = [] # type: List[Dict[str, Union[str, List[str], int, None]]]