Remove redundant variables in tokenizer

This commit is contained in:
Veronica Berglyd Olsen committed 2024-03-20 23:44:25 +01:00
1 parent 46c8bedd66
commit 144ba66d9d
6 files changed
+38 -82

No files matched your search

+3
View File
@@ -707,6 +707,7 @@ class _OutlineWidget(QWidget):
root = self.listView.invisibleRootItem()
parent = root
indent = False
for anchor, text in data.items():
level = OUTLINE_MAP.get(text[:2], -1)
text = text[3:]
@@ -724,7 +725,9 @@ class _OutlineWidget(QWidget):
parent = item
elif parent:
parent.addChild(item)
indent = True
self.listView.setIndentation(SHARED.theme.baseIconSize if indent else CONFIG.pxInt(4))
self._outline = data
return