aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--gui.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/gui.py b/gui.py
index ffa8116..f9ce8aa 100644
--- a/gui.py
+++ b/gui.py
@@ -166,6 +166,9 @@ class MoodleTreeView(QTreeWidget):
for leaf in self.worker.moodleItems.leaves:
self.addTopLevelItem(leaf.qt)
+ # sort only after the worker is done for efficiency
+ self.setSortingEnabled(True)
+
class QPlainTextEditLogger(logging.Handler):
def __init__(self, parent):
super().__init__()