diff --git a/main.py b/main.py index 4be07ca..1745ce0 100755 --- a/main.py +++ b/main.py @@ -7,14 +7,26 @@ import time import webbrowser from PySide2.QtCore import QObject, QThread, Signal, Slot -from PySide2.QtWidgets import (QApplication, QDialog, QFrame, QGroupBox, - QHBoxLayout, QLabel, QLineEdit, QProgressBar, - QPushButton, QScrollArea, QScroller, QTabBar, - QVBoxLayout) +from PySide2.QtWidgets import ( + QApplication, + QDialog, + QFrame, + QGroupBox, + QHBoxLayout, + QLabel, + QLineEdit, + QProgressBar, + QPushButton, + QScrollArea, + QScroller, + QTabBar, + QVBoxLayout, +) import doc_manager DOCS_PATH = os.environ["ORG_PATH"] +MAX_SEARCH_NODES = 100 class LoadDoneSignal(QObject): @@ -189,7 +201,7 @@ class Dialog(QDialog): layout = QVBoxLayout() - for note in notes: + for note in notes[:MAX_SEARCH_NODES]: layout.addWidget(self.build_note_task_widget(note)) frame = QFrame(self.results)