Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/vorta/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def __init__(self, path, exclude_patterns_str):
self.exclude_patterns = []
for _line in (exclude_patterns_str or '').splitlines():
line = _line.strip()
if line != '':
if line != '' and not line.startswith("#"):
self.exclude_patterns.append(line)

def run(self):
Expand Down
2 changes: 1 addition & 1 deletion src/vorta/views/source_tab.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def update_path_info(self, index_row: int):
path = self.sourceFilesWidget.item(index_row, SourceColumn.Path).text()
self.sourceFilesWidget.item(index_row, SourceColumn.Size).setText(self.tr("Calculating…"))
self.sourceFilesWidget.item(index_row, SourceColumn.FilesCount).setText(self.tr("Calculating…"))
getDir = FilePathInfoAsync(path, self.profile().exclude_patterns)
getDir = FilePathInfoAsync(path, self.profile().get_combined_exclusion_string())
getDir.signal.connect(self.set_path_info)
getDir.setObjectName(path)
self.updateThreads.append(getDir) # this is ugly, is there a better way to keep the thread object?
Expand Down
Loading