aboutsummaryrefslogtreecommitdiffstats
path: root/gui.py
diff options
context:
space:
mode:
authorNao Pross <np@0hm.ch>2020-10-17 01:10:55 +0200
committerNao Pross <np@0hm.ch>2020-10-17 01:10:55 +0200
commit055533f4ed7792d8e14e0cfbe7452744c32eedb9 (patch)
tree3f10689a78481bc05a2e020e27876d39a3e15f0e /gui.py
parentWrite how to build an executable in README (diff)
downloadMuddle-055533f4ed7792d8e14e0cfbe7452744c32eedb9.tar.gz
Muddle-055533f4ed7792d8e14e0cfbe7452744c32eedb9.zip
Sort moodle courses in GUI
Diffstat (limited to 'gui.py')
-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__()