Skip to content

Commit

Permalink
Increased maximum amount of scanned files
Browse files Browse the repository at this point in the history
  • Loading branch information
KodiCraft authored Jul 19, 2022
1 parent fa9b646 commit 516339e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wrls.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def __init__(self, options: Options):
# Recursively get all .wrl files in the wrl folder with the substring "cpBureau" inside them
self.wrls = []
files_scanned = 0
MAX_FILES = 100
MAX_FILES = 1000
for root, dirs, files in os.walk(options.get_wrl_folder()):
if files_scanned >= MAX_FILES:
break
Expand All @@ -37,4 +37,4 @@ def get_wrls(self):
def update_ui(self, ui):
ui.wrlList.clear()
for wrl in map(lambda x: x.replace(self.wrlFolder, ""), self.wrls):
ui.wrlList.addItem(QtWidgets.QListWidgetItem(wrl))
ui.wrlList.addItem(QtWidgets.QListWidgetItem(wrl))

0 comments on commit 516339e

Please sign in to comment.