Limit nodes shown as result to search to 100.
This commit is contained in:
parent
37ef32a964
commit
d29dac14c3
22
main.py
22
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)
|
||||
|
Loading…
Reference in New Issue
Block a user