+ fix cancel on progressbar

This commit is contained in:
oleting committed 2021-01-05 00:46:30 +01:00
1 parent 63f65250a3
commit b2b4bd79d1
3 files changed
+18 -8

No files matched your search

+3 -1
View File
@@ -62,7 +62,9 @@ class NassiShneidermanDiagram:
number_of_item = 1
for scope in self.function_scopes:
number_of_item += 1
one_line_progress_meter('Progress', number_of_item, len(self.function_scopes), '-PROGRESSBAR-')
cancel = one_line_progress_meter('Progress', number_of_item, len(self.function_scopes), '-PROGRESSBAR-')
if not cancel:
return False
filepath = f"{output_path}/{scope.name}"
filepath = self.check_conflicts(filepath, on_conflict)